ref_send API 2.17
defensive programming in Java

org.ref_send.promise
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.ref_send.promise.Failure
All Implemented Interfaces:
java.io.Serializable, Immutable, Powerless

public class Failure
extends java.lang.NullPointerException
implements Powerless

Indicates a failed HTTP request.

See Also:
Serialized Form

Field Summary
static int maxEntitySize
          entity size expected to trigger a 413 response: 262144
 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
 
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

maxEntitySize

public static final int maxEntitySize
entity size expected to trigger a 413 response: 262144

See Also:
Constant Field Values

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

ref_send API 2.17
defensive programming in Java

Submit a bug or feature, or get help

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