Class RelevantException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.miaixz.bus.core.lang.exception.RelevantException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RevisedException

public class RelevantException extends IOException
类型: IO相关异常
See Also:
  • Field Details

    • errcode

      protected String errcode
      错误码
    • errmsg

      protected String errmsg
      错误信息
  • Constructor Details

    • RelevantException

      protected RelevantException()
      构造
    • RelevantException

      protected RelevantException(String message)
      将抛出对象包裹成运行时异常,并增加自己的描述
      Parameters:
      message - 打印信息
    • RelevantException

      protected RelevantException(Throwable cause)
      将抛出对象包裹成运行时异常,并增加自己的描述
      Parameters:
      cause - 抛出对象
    • RelevantException

      protected RelevantException(String message, Throwable cause)
      将抛出对象包裹成运行时异常,并增加自己的描述
      Parameters:
      message - 打印信息
      cause - 抛出对象
    • RelevantException

      protected RelevantException(String errcode, String errmsg)
      将抛出对象包裹成运行时异常,并增加自己的描述
      Parameters:
      errcode - 错误编码
      errmsg - 错误提示
    • RelevantException

      protected RelevantException(String format, Object... args)
      根据格式化字符串,生成运行时异常
      Parameters:
      format - 格式
      args - 参数
    • RelevantException

      protected RelevantException(Throwable e, String fmt, Object... args)
      将抛出对象包裹成运行时异常,并增加自己的描述
      Parameters:
      e - 抛出对象
      fmt - 格式
      args - 参数
  • Method Details

    • noImplement

      protected static RelevantException noImplement()
      生成一个未实现的运行时异常
      Returns:
      一个未实现的运行时异常
    • impossible

      protected static RelevantException impossible()
      生成一个不可能的运行时异常
      Returns:
      一个不可能的运行时异常
    • unwrapThrow

      protected static Throwable unwrapThrow(Throwable e)
    • isCauseBy

      protected static boolean isCauseBy(Throwable e, Class<? extends Throwable> causeType)