Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.9.0)
E52936-01


oracle.adf.view.rich.remote
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by oracle.adf.view.rich.remote.HttpException

All Implemented Interfaces:
java.io.Serializable

public class HttpException
extends java.io.IOException

This exception is added to an ERROR response when there was a connecton issue of some kind. Typical connection issues that one would find in this status are errors, but there could also be more. While SOME of these issues are handled by the framework explicitly (like redirects and authorization type requests), this exception will be thrown when the result is one that is NOT explicitly handled by the framework. <p/> The "message" provided by this exception is expected to be a string representing the status of the remote request.

Since:
11.1.1.7.3
See Also:
Serialized Form

Constructor Summary
HttpException(java.lang.String string)
          Deprecated. please use the version that provides a status code.
HttpException(java.lang.String string, int statusCode)
          Creates a new HttpException with a status code

 

Method Summary
 int getStatusCode()
          Returns the HttpStatusCode which describes the error.

 

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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

HttpException

@Deprecated
public HttpException(java.lang.String string)
Deprecated. please use the version that provides a status code.
Creates a new HttpException. Using this version of the constructor will return a status code of -1.
Parameters:
string - a string describing the issue

HttpException

public HttpException(java.lang.String string,
                     int statusCode)
Creates a new HttpException with a status code
Parameters:
string - a string describing the issue
statusCode - the status code of the error

Method Detail

getStatusCode

public int getStatusCode()
Returns the HttpStatusCode which describes the error. Earlier versions of this class may return -1 for the status code if the status code is unknown.
Returns:

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.9.0)
E52936-01


Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.