public class DigiDoc4JException extends RuntimeException
Constructor and Description |
---|
DigiDoc4JException() |
DigiDoc4JException(Exception e)
Creates new exception based on another exception
|
DigiDoc4JException(int error,
String message)
Constructs a new runtime exception with the specified detail message and
cause.
|
DigiDoc4JException(String message)
Constructs a new runtime exception with the specified detail message and
cause.
|
DigiDoc4JException(String message,
String signatureId)
Constructs a new runtime exception with the specified detail message, signature ID and
cause.
|
DigiDoc4JException(String message,
Throwable cause)
Constructs a new runtime exception with the specified detail message and
cause.
|
DigiDoc4JException(Throwable e)
Creates new exception based on another exception
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Get the error code of the exception
|
String |
getSignatureId()
Get the Signature Id of the exception
|
void |
setSignatureId(String signatureId)
Set the Signature Id of the exception
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public DigiDoc4JException(int error, String message)
Note that the detail message associated with
cause
is not automatically incorporated in
this runtime exception's detail message.
error
- - error codemessage
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).public DigiDoc4JException(String message, Throwable cause)
Note that the detail message associated with
cause
is not automatically incorporated in
this runtime exception's detail message.
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).cause
- cause of exceptionpublic DigiDoc4JException(String message)
Note that the detail message associated with
cause
is not automatically incorporated in
this runtime exception's detail message.
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).public DigiDoc4JException(String message, String signatureId)
Note that the detail message associated with
cause
is not automatically incorporated in
this runtime exception's detail message.
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).signatureId
- - Signature IDpublic DigiDoc4JException(Throwable e)
e
- parent exceptionpublic DigiDoc4JException(Exception e)
e
- parent exceptionpublic DigiDoc4JException()
public int getErrorCode()
public String getSignatureId()
public void setSignatureId(String signatureId)
signatureId
- id of signatureCopyright © 2024. All rights reserved.