us.monoid.web
Class RestyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by us.monoid.web.RestyException
All Implemented Interfaces:
java.io.Serializable

public class RestyException
extends java.io.IOException

IOExceptions caused by non http 200 OK responses and containing a response message are wrapped in RestyExceptions that also embeds the requested resource

See Also:
Serialized Form

Constructor Summary
RestyException(java.lang.String message, java.lang.Throwable cause, us.monoid.web.AbstractResource errorResource)
           
 
Method Summary
 us.monoid.web.AbstractResource getErrorResource()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestyException

public RestyException(java.lang.String message,
                      java.lang.Throwable cause,
                      us.monoid.web.AbstractResource errorResource)
Method Detail

getErrorResource

public us.monoid.web.AbstractResource getErrorResource()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable