OpMath

com.opmath.util.http
Class ParameterAbsentException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.opmath.util.http.ParameterAbsentException
All Implemented Interfaces:
Serializable

public class ParameterAbsentException
extends Exception

Signals that a parameter (such as an HTTP environmental variable) was not present.

This method can be used to assign a default value in the case of an absent parameter, for example, with:

 try {
     newState = request.getStringParameter(StatefulServlet.STATE_PNAME);
 } catch(ParameterAbsentException paE) {
     newState = StatefulServlet.STATE_DFLT;
 }
 

Copyright: (c) 2002 The Open Math Company Limited

The Terms of Distribution of this software are stipulated in the javadoc Overview for this project.

Since:
J2SE 1.3.0
Version:
IAS411Test v1.0
Author:
Bruno Beloff bruno.beloff@opmath.com
See Also:
Serialized Form

Constructor Summary
ParameterAbsentException()
          Constructs a new ParameterAbsentException with no message.
ParameterAbsentException(String s)
          Constructs a new ParameterAbsentException with a String message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterAbsentException

public ParameterAbsentException()

Constructs a new ParameterAbsentException with no message.

Since:
J2SE 1.3

ParameterAbsentException

public ParameterAbsentException(String s)

Constructs a new ParameterAbsentException with a String message.

Parameters:
s - a String carrying a descriptive message.
Since:
J2SE 1.3

OpMath

Submit a bug or feature to Open Math
Copyright © 2002 Open Math Company Limited, Brighton, UK