Class ZerowebBusinessException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.xezzon.zeroweb.common.exception.ZerowebBusinessException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DataPermissionForbiddenException, RepeatDataException

public abstract class ZerowebBusinessException extends RuntimeException
抽象的业务异常基类。 所有业务相关的异常都应该继承此抽象类。
Author:
xezzon
See Also:
  • Method Details

    • code

      public abstract String code()
      业务异常的错误码。
      Returns:
      错误码字符串
    • httpStatus

      public int httpStatus()
      业务异常对应的 HTTP 状态码。
      Returns:
      HTTP 状态码