Package software.amazon.awssdk.crt
Class CrtRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- software.amazon.awssdk.crt.CrtRuntimeException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CrtS3RuntimeException
public class CrtRuntimeException extends RuntimeException
This exception will be thrown by any exceptional cases encountered within the JNI bindings to the AWS Common Runtime- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CrtRuntimeException(int errorCode)
Constructor for Crt exceptions due to native errorsCrtRuntimeException(int errorCode, String errorName)
Deprecated.use CrtRuntimeException(int errorCode)CrtRuntimeException(String msg)
Constructor for CRT exceptions not due to native errors
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
errorCode
public final int errorCode
-
errorName
public final String errorName
-
-
Constructor Detail
-
CrtRuntimeException
public CrtRuntimeException(String msg)
Constructor for CRT exceptions not due to native errors- Parameters:
msg
- exception message
-
CrtRuntimeException
@Deprecated public CrtRuntimeException(int errorCode, String errorName)
Deprecated.use CrtRuntimeException(int errorCode)- Parameters:
errorCode
- native error code detailing the reason for the exceptionerrorName
- name of native error code
-
CrtRuntimeException
public CrtRuntimeException(int errorCode)
Constructor for Crt exceptions due to native errors- Parameters:
errorCode
- native error code detailing the reason for the exception
-
-