ref_send API 1.16
defensive programming in Java

org.web_send
Class Failure

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.NullPointerException
                  extended by org.web_send.Failure
All Implemented Interfaces:
java.io.Serializable, Immutable, Powerless, Record

public class Failure
extends java.lang.NullPointerException
implements Powerless, Record

Indicates a failed HTTP request.

See Also:
Serialized Form

Field Summary
 java.lang.String phrase
          HTTP reason phrase
 java.lang.String status
          HTTP status code
 
Constructor Summary
Failure(java.lang.String status, java.lang.String phrase)
          Constructs an instance.
 
Method Summary
static Failure gone()
          410 Gone
static Failure notFound()
          404 Not Found
static Failure notSupported()
          415 Unsupported Media Type
static Failure tooBig()
          413 Request Entity Too Large
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

status

public final java.lang.String status
HTTP status code


phrase

public final java.lang.String phrase
HTTP reason phrase

Constructor Detail

Failure

public Failure(java.lang.String status,
               java.lang.String phrase)
Constructs an instance.

Parameters:
status - status
phrase - phrase
Method Detail

notFound

public static Failure notFound()
404 Not Found


gone

public static Failure gone()
410 Gone


tooBig

public static Failure tooBig()
413 Request Entity Too Large


notSupported

public static Failure notSupported()
415 Unsupported Media Type


ref_send API 1.16
defensive programming in Java

Submit a bug or feature, or get help

Copyright 1998-2007 Waterken Inc. under the terms of the MIT X license.