public class DataCorruptedException extends IOException
This exception is thrown by operation operating on persistent data structures that detect that those structures are missing or corrupted. The expected recovery procedure consists in reinitializing those structures and re-populating them: this can be done by the KnowledgeStore only for some auxiliary structures, while in the general case manual intervention from an administrator is required.
This exception is introduced to differentiate from other IOException that do not imply a corruption of stored data, and as such may be addressed by fixing their cause and re-attempt the operation. A DataCorruptedException provides a trigger for recovery procedures possibly performed automatically by the system or some external code accessing it.
Constructor and Description |
---|
DataCorruptedException(String message)
Creates a new instance with the optional error message specified.
|
DataCorruptedException(String message,
Throwable cause)
Creates a new instance with the optional error message and cause specified.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DataCorruptedException(String message)
message
- an optional error messageCopyright © 2015–2016 FBK-irst. All rights reserved.