Package org.apache.cassandra.io
Class FSError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.io.IOError
-
- org.apache.cassandra.io.FSError
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
FSReadError
,FSWriteError
public abstract class FSError extends java.io.IOError
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
path
-
Constructor Summary
Constructors Constructor Description FSError(java.lang.String message, java.lang.Throwable cause, java.nio.file.Path path)
FSError(java.lang.String message, java.lang.Throwable cause, File path)
FSError(java.lang.Throwable cause, java.nio.file.Path path)
FSError(java.lang.Throwable cause, File path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FSError
findNested(java.lang.Throwable top)
Unwraps the Throwable cause chain looking for an FSError instancejava.lang.String
toString()
-
-
-
Constructor Detail
-
FSError
public FSError(java.lang.Throwable cause, File path)
-
FSError
public FSError(java.lang.Throwable cause, java.nio.file.Path path)
-
FSError
public FSError(java.lang.String message, java.lang.Throwable cause, File path)
-
FSError
public FSError(java.lang.String message, java.lang.Throwable cause, java.nio.file.Path path)
-
-
Method Detail
-
findNested
public static FSError findNested(java.lang.Throwable top)
Unwraps the Throwable cause chain looking for an FSError instance- Parameters:
top
- the top-level Throwable to unwrap- Returns:
- FSError if found any, null otherwise
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-