org.springbyexample.httpclient
Class HttpAccessException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springbyexample.httpclient.HttpAccessException
All Implemented Interfaces:
Serializable

public class HttpAccessException
extends NestedRuntimeException

HTTP runtime exception for any HTTP error.

Author:
David Winterfeldt
See Also:
Serialized Form

Field Summary
protected  int statusCode
           
 
Constructor Summary
HttpAccessException(String msg)
          Constructor.
HttpAccessException(String msg, int statusCode)
          Constructor.
HttpAccessException(String msg, Throwable cause)
          Constructor.
HttpAccessException(String msg, Throwable cause, int statusCode)
          Constructor.
 
Method Summary
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statusCode

protected int statusCode
Constructor Detail

HttpAccessException

public HttpAccessException(String msg)
Constructor.

Parameters:
msg - Error message.

HttpAccessException

public HttpAccessException(String msg,
                           int statusCode)
Constructor.

Parameters:
msg - Error message.
statusCode - HTTP status code.

HttpAccessException

public HttpAccessException(String msg,
                           Throwable cause)
Constructor.

Parameters:
msg - Error message.
cause - Cause of error.

HttpAccessException

public HttpAccessException(String msg,
                           Throwable cause,
                           int statusCode)
Constructor.

Parameters:
msg - Error message.
cause - Cause of error.
statusCode - HTTP status code.


Copyright © 2008-2009 Spring by Example. All Rights Reserved.