Class TransferException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- risesoft.data.transfer.core.exception.TransferException
-
- All Implemented Interfaces:
Serializable
public class TransferException extends RuntimeException
程序通用异常- Author:
- lb
- See Also:
- Serialized Form
- Date:
- 2023年12月4日
-
-
Constructor Summary
Constructors Constructor Description TransferException(String errorMessage)TransferException(ErrorCode errorCode, String errorMessage)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransferExceptionas(ErrorCode errorCode, String message)static TransferExceptionas(ErrorCode errorCode, String message, Throwable cause)static TransferExceptionas(ErrorCode errorCode, Throwable cause)ErrorCodegetErrorCode()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
as
public static TransferException as(ErrorCode errorCode, String message)
-
as
public static TransferException as(ErrorCode errorCode, String message, Throwable cause)
-
as
public static TransferException as(ErrorCode errorCode, Throwable cause)
-
getErrorCode
public ErrorCode getErrorCode()
-
-