Class MalformedFileException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.quantfinlib.core.MalformedFileException
- All Implemented Interfaces:
QuantFinException, Serializable
A file or saved state that this library cannot read because its contents
are wrong, not because the read failed: a bad magic number, an unknown
format version, a duplicate checkpoint section, a journal that is not a
FIX journal.
Extends IOException, which these sites threw before 2.2, so
existing catch (IOException e) handlers still catch it. A genuine
read failure (disk error, closed stream) stays a plain
IOException; test e instanceof QuantFinException to tell
the two apart.
- Since:
- 2.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMalformedFileException(String message) Creates the exception.MalformedFileException(String message, Throwable cause) Creates the exception with the underlying cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface QuantFinException
getMessage
-
Constructor Details
-
MalformedFileException
Creates the exception.- Parameters:
message- what was wrong with the file
-
MalformedFileException
-