com.netscape.certsrv.selftests
Class EInvalidSelfTestException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.netscape.certsrv.base.EBaseException
              extended by com.netscape.certsrv.selftests.ESelfTestException
                  extended by com.netscape.certsrv.selftests.EInvalidSelfTestException
All Implemented Interfaces:
java.io.Serializable

public class EInvalidSelfTestException
extends ESelfTestException

This class implements an invalid self test exception. EInvalidSelfTestExceptions are derived from ESelfTestExceptions in order to allow users to easily do self tests without try-catch clauses. EInvalidSelfTestExceptions should be caught by SelfTestSubsystem managers.

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.netscape.certsrv.base.EBaseException
mParams
 
Constructor Summary
EInvalidSelfTestException(java.lang.String instanceName)
          Constructs an "invalid" self test exception.
EInvalidSelfTestException(java.lang.String instanceName, java.lang.String instanceValue)
          Constructs a "invalid" self test exception where the value is always invalid from a name/value pair
EInvalidSelfTestException(java.lang.String instanceStore, java.lang.String instanceParameter, java.lang.String instanceValue)
          Constructs an "invalid" self test exception where the parameter is always invalid from a substore.parameter/value pair; (the value passed in may be null).
 
Method Summary
 java.lang.String getInstanceName()
          Returns the instance name associated with this self test.
 java.lang.String getInstanceParameter()
          Returns the parameter associated with this self test.
 java.lang.String getInstanceStore()
          Returns the store associated with this self test.
 java.lang.String getInstanceValue()
          Returns the value associated with this self test.
 
Methods inherited from class com.netscape.certsrv.selftests.ESelfTestException
getBundleName
 
Methods inherited from class com.netscape.certsrv.base.EBaseException
getParameters, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EInvalidSelfTestException

public EInvalidSelfTestException(java.lang.String instanceName)
Constructs an "invalid" self test exception.

Parameters:
instanceName - invalid "instanceName" exception details

EInvalidSelfTestException

public EInvalidSelfTestException(java.lang.String instanceName,
                                 java.lang.String instanceValue)
Constructs a "invalid" self test exception where the value is always invalid from a name/value pair

Parameters:
instanceName - invalid "instanceName" exception details
instanceValue - invalid "instanceValue" exception details

EInvalidSelfTestException

public EInvalidSelfTestException(java.lang.String instanceStore,
                                 java.lang.String instanceParameter,
                                 java.lang.String instanceValue)
Constructs an "invalid" self test exception where the parameter is always invalid from a substore.parameter/value pair; (the value passed in may be null).

Parameters:
instanceStore - invalid "instanceStore" exception details
instanceParameter - invalid "instanceParameter" exception details
instanceValue - invalid "instanceValue" exception details (may be null)
Method Detail

getInstanceName

public java.lang.String getInstanceName()
Returns the instance name associated with this self test.

Returns:
name portion of the name/value pair

getInstanceStore

public java.lang.String getInstanceStore()
Returns the store associated with this self test.

Returns:
substore portion of the substore.parameter/value pair

getInstanceParameter

public java.lang.String getInstanceParameter()
Returns the parameter associated with this self test.

Returns:
parameter portion of the substore.parameter/value pair

getInstanceValue

public java.lang.String getInstanceValue()
Returns the value associated with this self test.

Returns:
value portion of the name/value pair