Package wt.eff.format
Class EffFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
wt.util.WTRuntimeException
wt.eff.format.EffFormatException
- All Implemented Interfaces:
Serializable,LocalizableMessage,Message
Provides an abstraction of an abnormal occurrence or error resulting
while an effectivity format related operation is executed. This exception
is thrown by the
Clients are not required to catch this exception, as there is not much the client can do once caught, although on certain occasions it can be caught, if the client and recover and act accordingly.
Exceptions can be localized through a given resource bundle, and other exceptions can be nested within an EffFormatException.
Supported API: true
Extendable: true
EffFormat classes during an abnormal occurence
or error, from which a client is not expected to recover, and hence this
is an unchecked exception.
Clients are not required to catch this exception, as there is not much the client can do once caught, although on certain occasions it can be caught, if the client and recover and act accordingly.
Exceptions can be localized through a given resource bundle, and other exceptions can be nested within an EffFormatException.
Supported API: true
Extendable: true
- Since:
- Windchill 9.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEffFormatException(String errorString)
Supported API: true
Supported API: trueEffFormatException(Throwable t, String rb, String key, Object[] params)
Supported API: true -
Method Summary
Modifier and TypeMethodDescriptionstatic EffFormatExceptiongetInstanceForIllegalFormatSpecification(String effFormat, ObjectReference contextObjRef, String addInfo) Factory method that returns an EffFormatException with a standard error message constructed from the parameters.static EffFormatExceptiongetInstanceForIllegalParameterSpecification(String effFormat, String param, ObjectReference contextObjRef, String addInfo) Factory method that returns an EffFormatException with a standard error message constructed from the parameters.Methods inherited from class wt.util.WTRuntimeException
getCause, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getMessage, getNestedThrowable, initCause, printStackTrace, printStackTrace, printStackTrace, toString, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, setStackTrace
-
Constructor Details
-
EffFormatException
Supported API: true- Parameters:
errorString-
-
EffFormatException
Supported API: true- Parameters:
t-rb-key-params-
-
EffFormatException
Supported API: true- Parameters:
t-
-
-
Method Details
-
getInstanceForIllegalParameterSpecification
public static EffFormatException getInstanceForIllegalParameterSpecification(String effFormat, String param, ObjectReference contextObjRef, String addInfo) Factory method that returns an EffFormatException with a standard error message constructed from the parameters. This method is to be called when a format parameter is incorrectly specified.
Supported API: true- Parameters:
effFormat- the name of the effectivity this parameter applies toparam- the parameter that is incorrectly specifiedcontextObjRef- (Optional) An object reference to the effectivity context object, for logging purposesaddInfo- Optionally, specify a specific error string, that will help the user identify the problem more closely- Returns:
- an EffFormatException object containing the error string constructed from the parameters
-
getInstanceForIllegalFormatSpecification
public static EffFormatException getInstanceForIllegalFormatSpecification(String effFormat, ObjectReference contextObjRef, String addInfo) Factory method that returns an EffFormatException with a standard error message constructed from the parameters. This method is to be called when a format parameter is incorrectly specified.
Supported API: true- Parameters:
effFormat- the name of the effectivity this parameter applies tocontextObjRef- (Optional) An object reference to the effectivity context object, for logging purposesaddInfo- Optionally, specify a specific error string, that will help the user identify the problem more closely- Returns:
- an EffFormatException object containing the error string constructed from the parameters
-