Class RoleNotInheritableException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.xezzon.zeroweb.common.exception.ZerowebBusinessException
io.github.xezzon.zeroweb.role.exception.RoleNotInheritableException
All Implemented Interfaces:
Serializable

@NullMarked public class RoleNotInheritableException extends io.github.xezzon.zeroweb.common.exception.ZerowebBusinessException

角色不可继承异常

当尝试向不可继承的角色添加下级角色时抛出此异常。 该异常表明操作违反了角色的继承规则, 通常是因为目标角色的 inheritable 字段为 false

Author:
xezzon
See Also:
  • Field Details

  • Constructor Details

    • RoleNotInheritableException

      public RoleNotInheritableException()

      构造不可继承异常实例

      使用默认错误消息初始化异常实例。 错误消息表明尝试向不可继承的角色添加子角色。

  • Method Details

    • code

      public String code()
      Specified by:
      code in class io.github.xezzon.zeroweb.common.exception.ZerowebBusinessException