Package net.webpdf.wsclient.exception
Class ServerResultException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.webpdf.wsclient.exception.ResultException
-
- net.webpdf.wsclient.exception.ServerResultException
-
- All Implemented Interfaces:
Serializable
public class ServerResultException extends ResultException
An instance of
ServerResultExceptionindicates, that some fail state occurred webPDF server while executing your request. The numerical error code provided byResultException.getErrorCode()is identical to the webPDF error codes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServerResultException(@Nullable WebserviceException openApiException)Instantiates a newServerResultExceptionthat wraps a webPDF server fail state.ServerResultException(@Nullable WebServiceException soapStubException)Instantiates a newServerResultExceptionthat wraps a webPDF server fail state.ServerResultException(Error wsclientError, @Nullable String errorMessage, int errorCode, @Nullable String stackTrace)Instantiates a newServerResultExceptionthat wraps a webPDF server fail state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()Returns aStringrepresentation of thisServerResultException.-
Methods inherited from class net.webpdf.wsclient.exception.ResultException
getClientError, getErrorCode, getMessage, getStackTraceMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
ServerResultException
public ServerResultException(@Nullable @Nullable WebserviceException openApiException)Instantiates a newServerResultExceptionthat wraps a webPDF server fail state.- Parameters:
openApiException- The openAPI RESTWebserviceExceptiondescribing the webPDF server fail state.
-
ServerResultException
public ServerResultException(@Nullable @Nullable WebServiceException soapStubException)Instantiates a newServerResultExceptionthat wraps a webPDF server fail state.- Parameters:
soapStubException- The SOAPWebserviceExceptiondescribing the webPDF server fail state.
-
ServerResultException
public ServerResultException(Error wsclientError, @Nullable @Nullable String errorMessage, int errorCode, @Nullable @Nullable String stackTrace)
Instantiates a newServerResultExceptionthat wraps a webPDF server fail state.- Parameters:
errorCode- The webPDF server error code wrapped by theServerResultException.errorMessage- The message of the webPDF server fail state.stackTrace- The stacktrace of the webPDF server fail state, as aString.
-
-
Method Detail
-
toString
public String toString()
Returns aStringrepresentation of thisServerResultException.- Overrides:
toStringin classThrowable- Returns:
- A
Stringrepresentation of thisServerResultException.
-
-