cds.util
Class CFormatArgException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycds.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
 
Constructor Summary
(package private) CFormatArgException()
           
(package private) CFormatArgException(java.lang.String s)
           
(package private) CFormatArgException(java.lang.String s, java.lang.String partial)
           
 
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
 

Field Detail

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.

Constructor Detail

CFormatArgException

CFormatArgException()

CFormatArgException

CFormatArgException(java.lang.String s)

CFormatArgException

CFormatArgException(java.lang.String s,
                    java.lang.String partial)