bcds.phison.io
Class BadFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
bcds.phison.io.BadFormatException
- All Implemented Interfaces:
- java.io.Serializable
public class BadFormatException
- extends java.lang.IllegalArgumentException
A generic exception used when an input does not adhere to
the expected format or there is a semantic error (for example,
an alphabetic value is found where a number is expected).
This class extends IllegalArgumentException because,
of "standard" unchecked exceptions included in java.lang or java.io,
this is the one that most resemble a "bad format" exception.
Note that just RuntimeException is too generic and
might be interpreted to include programming errors, which is
exception does not.
- Author:
- Juan Segovia S.
- See Also:
- Serialized Form
Constructor Summary |
BadFormatException(java.lang.String msg)
Creates a new exception object with the given message. |
BadFormatException(java.lang.String fmt,
java.lang.Object... args)
|
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 |
BadFormatException
public BadFormatException(java.lang.String msg)
- Creates a new exception object with the given message.
BadFormatException
public BadFormatException(java.lang.String fmt,
java.lang.Object... args)