EDU.bmrb.net
Class HTTPException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--EDU.bmrb.net.HTTPException

public class HTTPException
extends java.lang.Exception

Thrown when there is an error reported by the web server via an HTTP status (example: 404 Not Found)

See Also:
Serialized Form

Constructor Summary
HTTPException(java.lang.String msgPassed)
           
 
Method Summary
 java.lang.String getMessage()
          Returns the string status, for example: "HTTP/1.0 404 Not Found"
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTTPException

public HTTPException(java.lang.String msgPassed)
Parameters:
msgPassed - the string returned by the server, for example: "HTTP/1.0 400 Not Found"
Method Detail

getMessage

public java.lang.String getMessage()
Returns the string status, for example: "HTTP/1.0 404 Not Found"
Returns:
the string status, for example: "HTTP/1.0 404 Not Found"
Overrides:
getMessage in class java.lang.Throwable