org.apache.maven.doxia
Class UnsupportedFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.doxia.UnsupportedFormatException
All Implemented Interfaces:
Serializable

public class UnsupportedFormatException
extends Exception

Wrap an exception that occurs if a format is not supported.

Version:
$Id$
Author:
Vincent Siveton
See Also:
Serialized Form

Constructor Summary
UnsupportedFormatException(String format, String[] supportedFormat)
          Constructs an UnsupportedFormatException with the specified detail message.
UnsupportedFormatException(String format, String[] supportedFormat, Throwable cause)
          Construct a new UnsupportedFormatException with the specified detail message and cause.
 
Method Summary
 
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
 

Constructor Detail

UnsupportedFormatException

public UnsupportedFormatException(String format,
                                  String[] supportedFormat)
Constructs an UnsupportedFormatException with the specified detail message.

Parameters:
format - the unsupported format, not null
supportedFormat - the supported formats, not null

UnsupportedFormatException

public UnsupportedFormatException(String format,
                                  String[] supportedFormat,
                                  Throwable cause)
Construct a new UnsupportedFormatException with the specified detail message and cause.

Parameters:
format - the unsupported format, not null
supportedFormat - the supported formats, not null This can later be retrieved by the Throwable.getMessage() method.
cause - the cause. This can be retrieved later by the Throwable.getCause() method. (A null value is permitted, and indicates that the cause is nonexistent or unknown.)


Copyright © 2005-2010 FuseSource. All Rights Reserved.