cds.util
Class CFormatArgException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cds.util.CFormatArgException
- All Implemented Interfaces:
- java.io.Serializable
- public class CFormatArgException
- extends java.lang.RuntimeException
Runtime exception thrown when arguments don't match
the format specifications. E.g., wrong number of arguments,
or String where expecting a float.
Instances also store partial results, for recovery purposes.
Note that Format.printf()
etc do not throw exceptions
if the static boolean variable Format.trapErrors
is true.
(In this case, they print partial results and an error message,
and return to the caller.)
- Author:
- Tony Plate tplate@attglobal.net
Copyright 1999,2000 Tony Plate
- See Also:
- Serialized Form
Field Summary |
java.lang.String |
partialResults
The partial results, up to the point in the format string
where the error was encountered. |
java.lang.String |
remainingFormat
The part of the format string beyond where the error
was encountered. |
Fields inherited from class java.lang.RuntimeException |
|
Fields inherited from class java.lang.Throwable |
|
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 |
partialResults
public java.lang.String partialResults
- The partial results, up to the point in the format string
where the error was encountered.
remainingFormat
public java.lang.String remainingFormat
- The part of the format string beyond where the error
was encountered.
CFormatArgException
CFormatArgException()
CFormatArgException
CFormatArgException(java.lang.String s)
CFormatArgException
CFormatArgException(java.lang.String s,
java.lang.String partial)