public class KerberosException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
private KrbError |
error
the kerberos error
|
private int |
errorCode
The Kerberos error code associated with this exception.
|
private byte[] |
explanatoryData
Additional data about the error for use by the application
to help it recover from or handle the error.
|
private static long |
serialVersionUID |
| Modifier | Constructor and Description |
|---|---|
|
KerberosException(ErrorType errorType)
Creates a KerberosException with an
ErrorType. |
|
KerberosException(ErrorType errorType,
byte[] explanatoryData)
Creates a KerberosException with an
ErrorType and data helping to
explain what caused this fault. |
|
KerberosException(ErrorType errorType,
byte[] explanatoryData,
java.lang.Throwable cause)
Creates a KerberosException with an
ErrorType, data helping to
explain what caused this fault, and an underlying Throwable that caused this fault. |
|
KerberosException(ErrorType errorType,
java.lang.String msg)
Creates a KerberosException with an
ErrorType and a custom error message. |
|
KerberosException(ErrorType errorType,
java.lang.String msg,
java.lang.Throwable cause)
Creates a KerberosException with an
ErrorType, a custom error message, and an
underlying Throwable that caused this fault. |
|
KerberosException(ErrorType errorType,
java.lang.Throwable cause)
Creates a KerberosException with an
ErrorType and an
underlying Throwable that caused this fault. |
protected |
KerberosException(int errorCode,
java.lang.String msg)
Creates a KerberosException with an error code and a message.
|
protected |
KerberosException(int errorCode,
java.lang.String msg,
byte[] explanatoryData)
Creates a KerberosException with an error code, a message, and data
helping to explain what caused this fault.
|
protected |
KerberosException(int errorCode,
java.lang.String msg,
byte[] explanatoryData,
java.lang.Throwable cause)
Creates a KerberosException with an error code, a message, and data
helping to explain what caused this fault.
|
protected |
KerberosException(int errorCode,
java.lang.String msg,
java.lang.Throwable cause)
Creates a KerberosException with an error code, a message and an
underlying
Throwable that caused this fault. |
|
KerberosException(KrbError error)
Creates a new instance of KerberosException.
|
| Modifier and Type | Method and Description |
|---|---|
KrbError |
getError()
returns the KrbError message associated with this exception
|
int |
getErrorCode()
Gets the protocol error code associated with this KerberosException.
|
byte[] |
getExplanatoryData()
Gets the explanatory data associated with this KerberosException.
|
private static final long serialVersionUID
private KrbError error
private final int errorCode
private byte[] explanatoryData
public KerberosException(ErrorType errorType)
ErrorType.errorType - The error type associated with this KerberosException.public KerberosException(KrbError error)
error - the KrbError messagepublic KerberosException(ErrorType errorType, java.lang.Throwable cause)
ErrorType and an
underlying Throwable that caused this fault.errorType - The error type associated with this KerberosException.cause - The underlying failure, if any.public KerberosException(ErrorType errorType, java.lang.String msg)
ErrorType and a custom error message.errorType - The ErrorType associated with this KerberosException.msg - A custom error message for this KerberosException.public KerberosException(ErrorType errorType, java.lang.String msg, java.lang.Throwable cause)
ErrorType, a custom error message, and an
underlying Throwable that caused this fault.errorType - The error type associated with this KerberosException.msg - A custom error message for this KerberosException.cause - The underlying failure, if any.public KerberosException(ErrorType errorType, byte[] explanatoryData)
ErrorType and data helping to
explain what caused this fault.errorType - The error type associated with this KerberosException.explanatoryData - Data helping to explain this fault, if any.public KerberosException(ErrorType errorType, byte[] explanatoryData, java.lang.Throwable cause)
ErrorType, data helping to
explain what caused this fault, and an underlying Throwable that caused this fault.errorType - The error type associated with this KerberosException.explanatoryData - Data helping to explain this fault, if any.cause - The underlying failure, if any.protected KerberosException(int errorCode,
java.lang.String msg)
errorCode - The error code associated with this KerberosException.msg - The standard Kerberos error message for this KerberosException.protected KerberosException(int errorCode,
java.lang.String msg,
java.lang.Throwable cause)
Throwable that caused this fault.errorCode - The error code associated with this KerberosException.msg - The standard Kerberos error message for this KerberosException.cause - The underlying failure, if any.protected KerberosException(int errorCode,
java.lang.String msg,
byte[] explanatoryData)
errorCode - The error code associated with this KerberosException.msg - The standard Kerberos error message for this KerberosException.explanatoryData - Data helping to explain this fault, if any.protected KerberosException(int errorCode,
java.lang.String msg,
byte[] explanatoryData,
java.lang.Throwable cause)
errorCode - The error code associated with this KerberosException.msg - The standard Kerberos error message for this KerberosException.explanatoryData - Data helping to explain this fault, if any.cause - The underlying failure, if any.public int getErrorCode()
public byte[] getExplanatoryData()
public KrbError getError()