Class SagaException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- games.mythical.saga.sdk.exception.SagaException
-
- All Implemented Interfaces:
java.io.Serializable
public class SagaException extends java.lang.Exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SagaException(ErrorData errorData)SagaException(SagaErrorCode errorCode)SagaException(SagaErrorCode errorCode, java.lang.String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SagaExceptionfromGrpcException(io.grpc.StatusException ex)static SagaExceptionfromGrpcException(io.grpc.StatusRuntimeException ex)ErrorDatagetErrorData()
-
-
-
Constructor Detail
-
SagaException
public SagaException(ErrorData errorData)
-
SagaException
public SagaException(SagaErrorCode errorCode)
-
SagaException
public SagaException(SagaErrorCode errorCode, java.lang.String message)
-
-
Method Detail
-
getErrorData
public ErrorData getErrorData()
-
fromGrpcException
public static SagaException fromGrpcException(io.grpc.StatusException ex)
-
fromGrpcException
public static SagaException fromGrpcException(io.grpc.StatusRuntimeException ex)
-
-