uicc.scws
Class ScwsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javacard.framework.CardRuntimeException
                  extended by uicc.scws.ScwsException
All Implemented Interfaces:
java.io.Serializable

public class ScwsException
extends javacard.framework.CardRuntimeException

Smart Card Webserver exception and its associated constants.

See Also:
Serialized Form

Field Summary
static short BUFFER_OVERFLOW
          This reason code (= 2) is used to indicate an overflow of the Response Buffer.
static short HEADER_ALREADY_FINALIZED
          This reason code (= 4) indicates that the header of the HTTP response was already finalized.
static short HTTP_CODE_UNKNOWN
          This reason code (= 9) is used to indicate that the indicated status code is unknown
static short HTTP_RESPONSE_ALREADY_SENT
          This reason code (= 1) is used to indicate that the Http response was already sent to the SCWS
static short METHOD_NOT_SUPPORTED
          This reason code (= 3) indicates that the HTTP method is not supported by the ScwsExtension applet.
static short SCWSEXTENSION_REGISTRY_ERROR
          This reason code (= 5) indicates an error in the SCWSExtension registry
static short STATUS_LINE_ALREADY_SET
          This reason code (= 8) is used to indicate that the status line has already been written by the SCWS
static short UNKNOWN_KEYWORD_ID
          This reason code (= 7) is used to indicate that an unknown keywordID was used
static short UNREACHABLE_OFFSET
          This reason code (= 6) is used to indicate that the requested offset could not be reached.
 
Constructor Summary
ScwsException(short arg0)
           
 
Method Summary
static void throwIt(short reason)
          Throws the JCRE instance of ScwsException with the specified reason.
 
Methods inherited from class javacard.framework.CardRuntimeException
getReason, setReason
 
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
 

Field Detail

HTTP_RESPONSE_ALREADY_SENT

public static final short HTTP_RESPONSE_ALREADY_SENT
This reason code (= 1) is used to indicate that the Http response was already sent to the SCWS

See Also:
Constant Field Values

BUFFER_OVERFLOW

public static final short BUFFER_OVERFLOW
This reason code (= 2) is used to indicate an overflow of the Response Buffer.

See Also:
Constant Field Values

METHOD_NOT_SUPPORTED

public static final short METHOD_NOT_SUPPORTED
This reason code (= 3) indicates that the HTTP method is not supported by the ScwsExtension applet.

See Also:
Constant Field Values

HEADER_ALREADY_FINALIZED

public static final short HEADER_ALREADY_FINALIZED
This reason code (= 4) indicates that the header of the HTTP response was already finalized.

See Also:
Constant Field Values

SCWSEXTENSION_REGISTRY_ERROR

public static final short SCWSEXTENSION_REGISTRY_ERROR
This reason code (= 5) indicates an error in the SCWSExtension registry

See Also:
Constant Field Values

UNREACHABLE_OFFSET

public static final short UNREACHABLE_OFFSET
This reason code (= 6) is used to indicate that the requested offset could not be reached.

See Also:
Constant Field Values

UNKNOWN_KEYWORD_ID

public static final short UNKNOWN_KEYWORD_ID
This reason code (= 7) is used to indicate that an unknown keywordID was used

See Also:
Constant Field Values

STATUS_LINE_ALREADY_SET

public static final short STATUS_LINE_ALREADY_SET
This reason code (= 8) is used to indicate that the status line has already been written by the SCWS

See Also:
Constant Field Values

HTTP_CODE_UNKNOWN

public static final short HTTP_CODE_UNKNOWN
This reason code (= 9) is used to indicate that the indicated status code is unknown

See Also:
Constant Field Values
Constructor Detail

ScwsException

public ScwsException(short arg0)
Method Detail

throwIt

public static void throwIt(short reason)
                    throws ScwsException
Throws the JCRE instance of ScwsException with the specified reason.

Parameters:
reason - the reason for this exception
Throws:
ScwsException - always