Top Description Fields Constructors Methods
org.xerial.snappy

public Class SnappyException

extends Exception
Class Inheritance
Annotations
@Deprecated
Imports
java.io.IOException

Deprecated

Snappy-java now uses IOException

Exception in snappy-java
Author
leo

Field Summary

Modifier and TypeField and Description
public final SnappyErrorCode
private static final long

Constructor Summary

AccessConstructor and Description
public
SnappyException(int code)

public
public
public

Method Summary

Modifier and TypeMethod and Description
public SnappyErrorCode
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

public static void
throwException(int errorCode)

Field Detail

errorCodeback to summary
public final SnappyErrorCode errorCode
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

SnappyExceptionback to summary
public SnappyException(int code)
SnappyExceptionback to summary
public SnappyException(SnappyErrorCode errorCode)
SnappyExceptionback to summary
public SnappyException(SnappyErrorCode errorCode, Exception e)
SnappyExceptionback to summary
public SnappyException(SnappyErrorCode errorCode, String message)

Method Detail

getErrorCodeback to summary
public SnappyErrorCode getErrorCode()
getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
throwExceptionback to summary
public static void throwException(int errorCode) throws SnappyException