public class CorruptedException extends ImplementationException
Applications should not depend on this exception for theire correctness. It is thrown whenever an unexpected
situation is encountered. CorruptedException
should be used only to detect bugs.
PhysicalFileFactory
,
PhysicalFile
,
LogicalFile
,
Serialized FormConstructor and Description |
---|
CorruptedException(Implementation implementation,
long position)
Creates a new
CorruptedException taking the absolute position to the defect. |
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns the message of the exception.
|
long |
getPosition()
Gets the absolute file position causing this exception to be thrown.
|
getImplementation
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CorruptedException(Implementation implementation, long position)
CorruptedException
taking the absolute position to the defect.implementation
- meta-data describing the implementation causing the exception to be thrown.position
- absolute position at which the file is defect.public String getMessage()
getMessage
in class Throwable
public long getPosition()
null
.Copyright © 2005–2014 jDTAUS. All rights reserved.