TrueUpdate JAX-RS Utilities 0.7

net.java.trueupdate.jaxrs.util
Class UpdateServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

getStatus

public int getStatus()
Returns the HTTP status code.


TrueUpdate JAX-RS Utilities 0.7

Copyright © 2013 Schlichtherle IT Services. All rights reserved.