public class SMBSrvException
extends java.lang.Exception
This class holds the detail of an SMB network error. The SMB error class and error code are available to give extra detail about the error condition.
Modifier and Type | Field and Description |
---|---|
protected int |
m_errorclass |
protected int |
m_errorcode |
protected int |
m_NTerror |
Modifier | Constructor and Description |
---|---|
|
SMBSrvException(int errclass,
int errcode)
Construct an SMB exception with the specified error class/error code.
|
|
SMBSrvException(int nterror,
int errclass,
int errcode)
Construct an SMB exception with the specified error class/error code.
|
|
SMBSrvException(int errclass,
int errcode,
java.lang.String msg)
Construct an SMB exception with the specified error class/error code and
additional text error message.
|
protected |
SMBSrvException(SMBSrvPacket pkt)
Construct an SMB exception using the error class/error code in the SMB packet
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorClass()
Return the error class for this SMB exception.
|
int |
getErrorCode()
Return the error code for this SMB exception
|
java.lang.String |
getErrorText()
Return the error text for the SMB exception
|
int |
getNTErrorCode()
Return the NT error code
|
boolean |
hasNTErrorCode()
Check if the NT error code has been set
|
protected int m_errorclass
protected int m_errorcode
protected int m_NTerror
public SMBSrvException(int errclass, int errcode)
public SMBSrvException(int errclass, int errcode, java.lang.String msg)
protected SMBSrvException(SMBSrvPacket pkt)
public SMBSrvException(int nterror, int errclass, int errcode)
nterror
- interrclass
- interrcode
- intpublic int getErrorClass()
public int getErrorCode()
public final boolean hasNTErrorCode()
public int getNTErrorCode()
public java.lang.String getErrorText()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.