net.java.trueupdate.jaxrs.util
Class UpdateServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
net.java.trueupdate.jaxrs.util.UpdateServiceException
- All Implemented Interfaces:
- Serializable
public class UpdateServiceException
- extends IOException
Wraps a Throwable in order to decorate it with additional meta data
when producing or consuming a HTTP response.
- Author:
- Christian Schlichtherle
- See Also:
- Serialized Form
|
Constructor Summary |
UpdateServiceException(int status,
Throwable cause)
Constructs an update service exception with the given HTTP
status code and its causing exception. |
|
Method Summary |
int |
getStatus()
Returns the HTTP status code. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
UpdateServiceException
public UpdateServiceException(int status,
@CheckForNull
Throwable cause)
- Constructs an update service exception with the given HTTP
status code and its causing exception.
- Parameters:
status - the HTTP status code.cause - the causing exception.- See Also:
- http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
getStatus
public int getStatus()
- Returns the HTTP status code.
Copyright © 2013 Schlichtherle IT Services. All rights reserved.