com.novell.security.japi.pki
Class NPKI_Exception

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.novell.security.japi.pki.NPKI_Exception
All Implemented Interfaces:
java.io.Serializable

public class NPKI_Exception
extends java.lang.Exception

Defines the PKI Exception class.

See Also:
Serialized Form

Constructor Summary
NPKI_Exception(int errCode)
          Constructor
NPKI_Exception(java.lang.String errDesc)
          The constructor for NPKI.Exception class.
 
Method Summary
 int getErrCode()
          Gets PKI, NICI, or DS defined error code.
 java.lang.String toString()
          Gets the string description of the error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NPKI_Exception

public NPKI_Exception(java.lang.String errDesc)
The constructor for NPKI.Exception class.

Parameters:
errDesc - Certificate error descriptions.

NPKI_Exception

public NPKI_Exception(int errCode)
Constructor

Parameters:
errCode - Error code.
Method Detail

getErrCode

public int getErrCode()
Gets PKI, NICI, or DS defined error code.

Returns:
Error code.

toString

public java.lang.String toString()
Gets the string description of the error.

NOTE: not all errors have a description associated with them.

Overrides:
toString in class java.lang.Throwable
Returns:
The error description.