com.wles
Class BadParameterException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.wles.BaseException
              extended bycom.wles.BadParameterException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TypeConversionException, UnsupportedTypeException

public class BadParameterException
extends BaseException

Indicates that there was an error in one of the supplied parameters.

See Also:
Serialized Form

Constructor Summary
BadParameterException()
          Constructs a BadParameterException
BadParameterException(java.lang.String msg)
          Constructs a BadParameterException
BadParameterException(java.lang.String msg, int parmNum)
          Constructs a BadParameterException
 
Method Summary
 int getParameterNumber()
          Get the parameter number which caused 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadParameterException

public BadParameterException()
Constructs a BadParameterException


BadParameterException

public BadParameterException(java.lang.String msg)
Constructs a BadParameterException

Parameters:
msg - error message

BadParameterException

public BadParameterException(java.lang.String msg,
                             int parmNum)
Constructs a BadParameterException

Parameters:
msg - error message
parmNum - index of the parameter which caued the error
Method Detail

getParameterNumber

public int getParameterNumber()
Get the parameter number which caused the error.

Returns:
the parameter number causing the error, or 9 if unspecified.


Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.