public class YWebservicesException
extends java.lang.RuntimeException
RuntimeException which provides some additional webservice specific information which should be used to build
the client response.| Constructor and Description |
|---|
YWebservicesException()
Constructor.
|
YWebservicesException(java.lang.String message) |
YWebservicesException(java.lang.String message,
java.lang.Throwable cause)
Constructor.
|
YWebservicesException(java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
int |
getResponseStatus()
Returns a http-response status which should be used when this exception is thrown.
|
java.lang.String |
getShortStacktrace()
Builds and returns a short client-friendly stacktrace.
|
void |
notifyLogger(Logger log)
Notifies logger about this exception.
|
public YWebservicesException()
public YWebservicesException(java.lang.String message)
public YWebservicesException(java.lang.Throwable cause)
public YWebservicesException(java.lang.String message,
java.lang.Throwable cause)
message - cause - public int getResponseStatus()
public java.lang.String getShortStacktrace()
public void notifyLogger(Logger log)
BadRequestException logger only gets
passed the general error message otherwise exception itself gets passed to logger additionally.log - Logger which shall be notified about this exceptionCopyright © 2018 SAP SE. All Rights Reserved.