net.sf.jmimemagic
Class MagicException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynet.sf.jmimemagic.MagicException
All Implemented Interfaces:
java.io.Serializable

public class MagicException
extends java.lang.Exception

Basic JMimeMagic parse exception. This is simply a holder to identify a parsing problem. It should be extended to identify more specific issues.

Version:
$Revision: 1.1 $
Author:
$Author: arimus $
See Also:
Serialized Form

Constructor Summary
MagicException()
          Default constructor
MagicException(java.lang.String message)
          Create exception with error message
MagicException(java.lang.String message, java.lang.Throwable cause)
          Create an exception with custom message and throwable info
MagicException(java.lang.Throwable cause)
          Create exception based on an existing Throwable
 
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

MagicException

public MagicException()
Default constructor


MagicException

public MagicException(java.lang.String message)
Create exception with error message

Parameters:
message - The error message for this exception

MagicException

public MagicException(java.lang.Throwable cause)
Create exception based on an existing Throwable

Parameters:
cause - The throwable on which we'll base this exception

MagicException

public MagicException(java.lang.String message,
                      java.lang.Throwable cause)
Create an exception with custom message and throwable info

Parameters:
message - The message
cause - The target Throwable


Copyright © 2003-2006 none. All Rights Reserved.