public class PdfcException
extends com.inet.error.BaseException
Modifier | Constructor and Description |
---|---|
protected |
PdfcException(com.inet.error.ErrorCode errorCode,
java.lang.Object... params)
Creates the exception with an error code
|
protected |
PdfcException(com.inet.error.ErrorCode errorCode,
java.lang.Throwable cause,
java.lang.Object... params)
Creates the exception with error code and root cause
|
protected |
PdfcException(java.lang.Throwable cause)
Creates a new general or wrapped exception from a cause.
|
Modifier and Type | Method and Description |
---|---|
static PdfcException |
create(com.inet.error.ErrorCode errorCode,
java.lang.Object... params)
Creates the exception with an error code.
|
static PdfcException |
create(com.inet.error.ErrorCode errorCode,
java.lang.Throwable cause,
java.lang.Object... params)
Creates the exception with error code and root cause.
|
static PdfcException |
create(java.lang.Throwable cause)
Creates a general exception from a cause.
|
protected PdfcException(@Nonnull com.inet.error.ErrorCode errorCode, @Nullable java.lang.Object... params)
errorCode
- the code to be setparams
- additional parameters to append to the error messageprotected PdfcException(@Nonnull com.inet.error.ErrorCode errorCode, @Nullable java.lang.Throwable cause, @Nullable java.lang.Object... params)
errorCode
- the code to be setcause
- the causing exceptionparams
- additional parameters to append to the error messageprotected PdfcException(@Nullable java.lang.Throwable cause)
cause
- the causing exception, null
is valid but discouragedcreate(Throwable)
public static PdfcException create(@Nonnull com.inet.error.ErrorCode errorCode, @Nullable java.lang.Object... params)
errorCode
- the code to be setparams
- additional parameters to append to the error messagepublic static PdfcException create(@Nonnull com.inet.error.ErrorCode errorCode, @Nullable java.lang.Throwable cause, @Nullable java.lang.Object... params)
PdfcException
then returns cause.HasErrorCode
, takes the code of cause instead of the given code.errorCode
- the code to be setcause
- the causing exceptionparams
- additional parameters to append to the error messagepublic static PdfcException create(@Nullable java.lang.Throwable cause)
PdfcException
then returns cause.HasErrorCode
, then the code of cause is used.cause
- the causing exception, null
is valid but discouragedCopyright © 2010-2022 by i-net software GmbH