public class PdmsBackendException extends Exception
PdmsBackendException should be thrown by a Java Insight Provider backend when a PDMS-specific error occurs.| Constructor and Description |
|---|
PdmsBackendException(int status,
String message)
Creates a new
PdmsBackendException with the error message set to the passed argument string and the associated
HTTP error code set to the passed status argument. |
PdmsBackendException(int status,
String message,
Throwable cause)
Creates a new
PdmsBackendException with the error message set to the passed argument string, the associated
HTTP error code set to the passed status argument and the cause set to the passed argument throwable. |
PdmsBackendException(String message)
Creates a new
PdmsBackendException with the error message set to the passed argument string. |
PdmsBackendException(String message,
Throwable cause)
Creates a new
PdmsBackendException with the error message set to the passed argument string and the cause
set to the passed argument throwable. |
| Modifier and Type | Method and Description |
|---|---|
int |
getStatus()
Returns the HTTP status code associated with the exception.
|
void |
setStatus(int status)
Set the HTTP status code associated with the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic PdmsBackendException(String message)
PdmsBackendException with the error message set to the passed argument string.message - the error messagepublic PdmsBackendException(String message, Throwable cause)
PdmsBackendException with the error message set to the passed argument string and the cause
set to the passed argument throwable.message - the error messagecause - the thowable exception that caused this exceptionpublic PdmsBackendException(int status,
String message)
PdmsBackendException with the error message set to the passed argument string and the associated
HTTP error code set to the passed status argument.status - the HTTP status code to be associated with the exceptionmessage - the error messagepublic PdmsBackendException(int status,
String message,
Throwable cause)
PdmsBackendException with the error message set to the passed argument string, the associated
HTTP error code set to the passed status argument and the cause set to the passed argument throwable.message - the error messagestatus - the HTTP status code to be associated with the exceptioncause - the throwable exception that caused this exceptionpublic int getStatus()
public void setStatus(int status)
status - the HTTP status code to be associated with this exception.Copyright © 2016 SAP. All Rights Reserved.