coins
Class FatalError
java.lang.Object
java.lang.Throwable
java.lang.Error
coins.FatalError
- All Implemented Interfaces:
- java.io.Serializable
- public class FatalError
- extends java.lang.Error
Abstraction of a fatal error.
A FatalError represents a disastarous event and throwing it will
stops the entire compilation. A compiler driver is not expected to catch a
FatalError, and the VM will show a stack trace.
FatalError thrower must write an error message, because the
compiler driver never writes it.
- See Also:
- Serialized Form
| Fields inherited from class java.lang.Error |
|
|
Constructor Summary |
FatalError(int messageNumber,
java.lang.String message)
Creates a fatal error. |
FatalError(java.lang.String message)
Creates a fatal error. |
| 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 |
FatalError
public FatalError(java.lang.String message)
- Creates a fatal error.
- Parameters:
message - a message describing this error.
FatalError
public FatalError(int messageNumber,
java.lang.String message)
- Creates a fatal error. //## Tan
- Parameters:
messageNumber - message number.message - a message describing this error.