public class ErrorMessage extends PKIMessageBody
PKIMessageBody.Type| Constructor and Description | 
|---|
| ErrorMessage(java.io.InputStream is) | 
| ErrorMessage(PKIStatusInfo status)Create a new  ErrorMessagewith the specified status info. | 
| ErrorMessage(PKIStatusInfo status, java.math.BigInteger code, java.lang.String detail)Create a new  ErrorMessagewith the specified status info and descriptive string. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addErrorDetail(java.lang.String detail) | 
| java.math.BigInteger | getErrorCode()Get the error code for this error message. | 
| java.lang.String | getErrorDetail()Returns the error details for this error message. | 
| java.util.Vector | getErrorDetails()Returns the error details for this error message as a vector of strings, or  nullif none are defined. | 
| PKIStatusInfo | getStatusInfo()Get the status of this message. | 
| PKIMessageBody.Type | getType()Returns one of the values defined in  PKIMessageBody.Type. | 
| void | input(java.io.InputStream is) | 
| java.lang.String | toString() | 
inputInstance, length, outputpublic ErrorMessage(PKIStatusInfo status)
ErrorMessage with the specified status info.status - the PKIStatusInfo for this message.public ErrorMessage(PKIStatusInfo status, java.math.BigInteger code, java.lang.String detail)
ErrorMessage with the specified status info and descriptive string.status - the PKIStatusInfo for this message.code - the implementation-specific error code.details - the implementation-specific error details.
public ErrorMessage(java.io.InputStream is)
             throws java.io.IOException
java.io.IOExceptionpublic PKIStatusInfo getStatusInfo()
public java.math.BigInteger getErrorCode()
public void addErrorDetail(java.lang.String detail)
public java.lang.String getErrorDetail()
null if none are defined.String.public java.util.Vector getErrorDetails()
null if none are defined.public PKIMessageBody.Type getType()
PKIMessageBodyPKIMessageBody.Type.getType in class PKIMessageBodypublic java.lang.String toString()
toString in class java.lang.Object
public void input(java.io.InputStream is)
           throws java.io.IOException
java.io.IOException