org.millscript.commons.alert.alerts
Class IOAlert

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.millscript.commons.alert.Alert
                  extended by org.millscript.commons.alert.alerts.IOAlert
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UnsupportedCharacterSetAlert

public class IOAlert
extends Alert

This class implements an Alert for use in situations like where a IOException has been thrown.

See Also:
Serialized Form

Constructor Summary
  IOAlert()
          Constructs a new I/O alert with no explanation.
  IOAlert(java.lang.String exp)
          Constructs a new I/O alert with the specified explanation.
protected IOAlert(java.lang.String comp, java.lang.String exp)
          Constructs a new alert with the specified complaint and explanation.
 
Method Summary
 IOAlert culpritFile(java.io.File file)
           
 IOAlert culpritURI(java.net.URI uri)
           
static IOAlert unexpectedEndOfFile()
           
 
Methods inherited from class org.millscript.commons.alert.Alert
culprit, culprit, culprit, culprit, culprit, culprit, culprit, culprit, decorate, decorate, escape, getComplaint, getCulprits, getMessage, getParentAlert, getParentThrowable, getPhase, getReason, isMishap, mishap, origin, remishap, report, setParentAlert, setParentThrowable, setPhase, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IOAlert

public IOAlert()
Constructs a new I/O alert with no explanation.


IOAlert

public IOAlert(java.lang.String exp)
Constructs a new I/O alert with the specified explanation.

Parameters:
exp - the explanation for the alert

IOAlert

protected IOAlert(java.lang.String comp,
                  java.lang.String exp)
Constructs a new alert with the specified complaint and explanation. This constructor is for private use, to allow us to provide an exception hierarchy.

Parameters:
comp - the complaint
exp - the complaints explanation
Method Detail

culpritFile

public IOAlert culpritFile(java.io.File file)

culpritURI

public IOAlert culpritURI(java.net.URI uri)

unexpectedEndOfFile

public static IOAlert unexpectedEndOfFile()


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.