Enum Class的使用
com.baidu.mochow.exception.MochowServiceException.ErrorType
-
com.baidu.mochow.exception中MochowServiceException.ErrorType的使用
修饰符和类型方法说明MochowServiceException.getErrorType()Indicates who is responsible for this exception (caller, service, or unknown).Returns the enum constant of this class with the specified name.static MochowServiceException.ErrorType[]MochowServiceException.ErrorType.values()Returns an array containing the constants of this enum class, in the order they are declared.修饰符和类型方法说明voidMochowServiceException.setErrorType(MochowServiceException.ErrorType errorType) Sets the type of error represented by this exception (sender, receiver, or unknown), indicating if this exception was the caller's fault, or the service's fault.