java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.codelibs.jcifs.smb1.netbios.NbtException
- All Implemented Interfaces:
Serializable
NetBIOS exception class for NBT-related errors.
This exception encapsulates NetBIOS name service and session service errors
with specific error classes and codes.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intActive error in the name servicestatic final intCalled name not presentstatic final intName in conflict errorstatic final intConnection refused by the remote hoststatic final intName service error classstatic final intSession service error classintThe NetBIOS error classintThe NetBIOS error codestatic final intFormat error in the name servicestatic final intImplementation error in the name servicestatic final intInsufficient resources to establish sessionstatic final intNot listening on the called namestatic final intNot listening for the calling namestatic final intRefused error in the name servicestatic final intServer error in the name servicestatic final intSuccess status codestatic final intUnspecified session service error -
Constructor Summary
ConstructorsConstructorDescriptionNbtException(int errorClass, int errorCode) Constructs an NbtException with the specified error class and code. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetErrorString(int errorClass, int errorCode) Converts NetBIOS error class and code to a human-readable string.toString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
SUCCESS
public static final int SUCCESSSuccess status code- See Also:
-
ERR_NAM_SRVC
public static final int ERR_NAM_SRVCName service error class- See Also:
-
ERR_SSN_SRVC
public static final int ERR_SSN_SRVCSession service error class- See Also:
-
FMT_ERR
public static final int FMT_ERRFormat error in the name service- See Also:
-
SRV_ERR
public static final int SRV_ERRServer error in the name service- See Also:
-
IMP_ERR
public static final int IMP_ERRImplementation error in the name service- See Also:
-
RFS_ERR
public static final int RFS_ERRRefused error in the name service- See Also:
-
ACT_ERR
public static final int ACT_ERRActive error in the name service- See Also:
-
CFT_ERR
public static final int CFT_ERRName in conflict error- See Also:
-
CONNECTION_REFUSED
public static final int CONNECTION_REFUSEDConnection refused by the remote host- See Also:
-
NOT_LISTENING_CALLED
public static final int NOT_LISTENING_CALLEDNot listening on the called name- See Also:
-
NOT_LISTENING_CALLING
public static final int NOT_LISTENING_CALLINGNot listening for the calling name- See Also:
-
CALLED_NOT_PRESENT
public static final int CALLED_NOT_PRESENTCalled name not present- See Also:
-
NO_RESOURCES
public static final int NO_RESOURCESInsufficient resources to establish session- See Also:
-
UNSPECIFIED
public static final int UNSPECIFIEDUnspecified session service error- See Also:
-
errorClass
public int errorClassThe NetBIOS error class -
errorCode
public int errorCodeThe NetBIOS error code
-
-
Constructor Details
-
NbtException
public NbtException(int errorClass, int errorCode) Constructs an NbtException with the specified error class and code.- Parameters:
errorClass- the NetBIOS error classerrorCode- the NetBIOS error code
-
-
Method Details