Package com.iizix.translate
Class RequestException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.io.IOException
- com.iizix.translate.RequestException
 
 
 
 
- All Implemented Interfaces:
- java.io.Serializable
 - public class RequestException extends java.io.IOExceptionException class for HTTP request errors.- Author:
- Christopher Mindus
- See Also:
- Serialized Form
 
- Constructor Summary- Constructors - Constructor - Description - RequestException(java.lang.String message)Creates a request exception.- RequestException(java.lang.String message, java.lang.Throwable cause)Creates a request exception.- RequestException(java.lang.String message, java.lang.Throwable cause, int rc, java.lang.String reply)Creates a request exception.
 
- Field Detail- rc- public final int rc The HTTP return code, -1 if no code can be discerned from the response (i.e., the response is not valid HTTP).
 - reply- public final java.lang.String reply The HTTP reply. Extracts the Strings "OK" and "Not Found" respectively from the HTTP reply (e.g. "HTTP/1.0 404 Not Found"), null if none could be discerned from the responses (the result was not valid HTTP).
 
 - Constructor Detail- RequestException- public RequestException(java.lang.String message) Creates a request exception.- Parameters:
- message- The message.
 
 - RequestException- public RequestException(java.lang.String message, java.lang.Throwable cause)Creates a request exception.- Parameters:
- message- The message.
- cause- The cause.
 
 - RequestException- public RequestException(java.lang.String message, java.lang.Throwable cause, int rc, java.lang.String reply)Creates a request exception.- Parameters:
- message- The message.
- cause- The cause.
- rc- The HTTP return code.
- reply- The reply from HTTP.