Package net.sf.jmimemagic
Class MagicException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.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 $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description MagicException()
Default constructorMagicException(java.lang.String message)
Create exception with error messageMagicException(java.lang.String message, java.lang.Throwable cause)
Create an exception with custom message and throwable infoMagicException(java.lang.Throwable cause)
Create exception based on an existing Throwable
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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 messagecause
- The target Throwable
-
-