Package net.webpdf.wsclient.schema.beans
Class Failure
- java.lang.Object
-
- net.webpdf.wsclient.schema.beans.Failure
-
- All Implemented Interfaces:
Serializable
public class Failure extends Object implements Serializable
An instance ofFailureis intended to wrap and simplify the webPDF server“sFaultInforesponses and shall provide the error code, message and stacktrace of a failure encountered by the webPDF server.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Failure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Returns numeric webPDF server error code, that is describing the issue.@Nullable StringgetErrorMessage()Returns the webPDF server error message, that is describing the issue.@Nullable StringgetStackTrace()Returns the stacktrace, that lead to the creation of this exception.voidsetErrorCode(int errorCode)Sets the numeric webPDF server error code, that is describing the issue.voidsetErrorMessage(@Nullable String errorMessage)Sets the webPDF server error message, that is describing the issue.voidsetStackTrace(@Nullable String stackTrace)Sets the stacktrace, that lead to the creation of this exception.
-
-
-
Method Detail
-
getErrorCode
public int getErrorCode()
Returns numeric webPDF server error code, that is describing the issue.- Returns:
- The numeric webPDF server error code, that is describing the issue.
-
setErrorCode
public void setErrorCode(int errorCode)
Sets the numeric webPDF server error code, that is describing the issue.- Parameters:
errorCode- The numeric webPDF server error code, that is describing the issue.
-
getErrorMessage
@Nullable public @Nullable String getErrorMessage()
Returns the webPDF server error message, that is describing the issue.- Returns:
- The webPDF server error message, that is describing the issue.
-
setErrorMessage
public void setErrorMessage(@Nullable @Nullable String errorMessage)Sets the webPDF server error message, that is describing the issue.- Parameters:
errorMessage- The webPDF server error message, that is describing the issue.
-
getStackTrace
@Nullable public @Nullable String getStackTrace()
Returns the stacktrace, that lead to the creation of this exception.- Returns:
- The stacktrace, that lead to the creation of this exception.
-
setStackTrace
public void setStackTrace(@Nullable @Nullable String stackTrace)Sets the stacktrace, that lead to the creation of this exception.- Parameters:
stackTrace- The stacktrace, that lead to the creation of this exception.
-
-