org.millscript.commons.vfs.alerts
Class UnsupportedURIAlert

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
                      extended by org.millscript.commons.vfs.alerts.VFSAlert
                          extended by org.millscript.commons.vfs.alerts.UnsupportedURIAlert
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UnsupportedURISchemeAlert

public class UnsupportedURIAlert
extends VFSAlert

Thrown to indicate a URI is not supported.

See Also:
Serialized Form

Constructor Summary
  UnsupportedURIAlert()
          Constructs a new unsupported URI alert with no explanation.
  UnsupportedURIAlert(java.lang.String exp)
          Constructs a new unsupported URI alert with the specified explanation.
protected UnsupportedURIAlert(java.lang.String comp, java.lang.String exp)
          Constructs a new alert with the specified complaint and explanation.
 
Method Summary
static UnsupportedURIAlert mustBeAbsolute(java.net.URI uri)
           
static UnsupportedURIAlert mustBeRelative(java.net.URI uri)
           
static UnsupportedURIAlert mustNotBeOpaque(java.net.URI uri)
           
 
Methods inherited from class org.millscript.commons.alert.alerts.IOAlert
culpritFile, culpritURI, 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

UnsupportedURIAlert

public UnsupportedURIAlert()
Constructs a new unsupported URI alert with no explanation.


UnsupportedURIAlert

public UnsupportedURIAlert(java.lang.String exp)
Constructs a new unsupported URI alert with the specified explanation.

Parameters:
exp - the explanation for the alert

UnsupportedURIAlert

protected UnsupportedURIAlert(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 alerts complaint
exp - the explanation for the alert
Method Detail

mustBeAbsolute

public static UnsupportedURIAlert mustBeAbsolute(java.net.URI uri)

mustBeRelative

public static UnsupportedURIAlert mustBeRelative(java.net.URI uri)

mustNotBeOpaque

public static UnsupportedURIAlert mustNotBeOpaque(java.net.URI uri)


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