public class Exceptions extends Object
public static void impossible()
public static RuntimeException unchecked(Throwable e)
e
- Throwablepublic static void printStacks(Throwable t)
t
- Throwablepublic static List<Stacks.StackTrace> getStackTrace(Throwable t)
t
- 异常public static String getStackTraceAsString(Throwable t)
t
- 异常@SafeVarargs public static boolean isCausedBy(Throwable r, Class<? extends Exception>... causeThrowableClasses)
r
- 异常causeThrowableClasses
- checkClasspublic static Exception exception()
public static RuntimeException runtime()
public static RuntimeException runtime(Throwable t)
public static RuntimeException runtime(String s)
public static RuntimeException runtime(String s, Throwable t)
public static ApplicationException app()
public static ApplicationException app(Throwable t)
public static ApplicationException app(String s)
public static ApplicationException app(String s, Throwable t)
public static IOException io()
public static IOException io(String s)
public static IOException io(Throwable t)
public static IOException io(String s, Throwable t)
public static NullPointerException nullPoint()
public static NullPointerException nullPoint(String s)
public static IllegalArgumentException argument()
public static IllegalArgumentException argument(Throwable t)
public static IllegalArgumentException argument(String s)
public static IllegalArgumentException argument(String s, Throwable t)
public static NumberFormatException numberFormat()
public static NumberFormatException numberFormat(String s)
public static IndexOutOfBoundsException index()
public static IndexOutOfBoundsException index(String s)
public static ArrayIndexOutOfBoundsException arrayIndex()
public static ArrayIndexOutOfBoundsException arrayIndex(String s)
public static ArrayIndexOutOfBoundsException arrayIndex(int index)
public static InvokeRuntimeException invoke()
public static InvokeRuntimeException invoke(Throwable t)
public static InvokeRuntimeException invoke(String s)
public static InvokeRuntimeException invoke(String s, Throwable t)
public static ParseRuntimeException parse()
public static ParseRuntimeException parse(int index)
public static ParseRuntimeException parse(String s)
public static ParseRuntimeException parse(String s, int index)
public static ParseRuntimeException parse(Throwable t)
public static ParseRuntimeException parse(int index, Throwable t)
public static ParseRuntimeException parse(String s, Throwable t)
public static ParseRuntimeException parse(String s, int index, Throwable t)
public static ParseDateException parseDate()
public static ParseDateException parseDate(int index)
public static ParseDateException parseDate(String s)
public static ParseDateException parseDate(String s, int index)
public static ParseCronException parseCron()
public static ParseCronException parseCron(int index)
public static ParseCronException parseCron(String s)
public static ParseCronException parseCron(String s, int index)
public static ConfigException config()
public static ConfigException config(Throwable t)
public static ConfigException config(String s)
public static ConfigException config(String s, Throwable t)
public static InitializeException init()
public static InitializeException init(Throwable t)
public static InitializeException init(String s)
public static InitializeException init(String s, Throwable t)
public static LockException lock()
public static LockException lock(Throwable t)
public static LockException lock(String s)
public static LockException lock(String s, Throwable t)
public static LoadException load()
public static LoadException load(Throwable t)
public static LoadException load(String s)
public static LoadException load(String s, Throwable t)
public static UnsafeException unsafe()
public static UnsafeException unsafe(Throwable t)
public static UnsafeException unsafe(String s)
public static UnsafeException unsafe(String s, Throwable t)
public static IORuntimeException ioRuntime()
public static IORuntimeException ioRuntime(Throwable t)
public static IORuntimeException ioRuntime(String s)
public static IORuntimeException ioRuntime(String s, Throwable t)
public static InterruptedException interrupted()
public static InterruptedException interrupted(String s)
public static InterruptedRuntimeException interruptedRuntime()
public static InterruptedRuntimeException interruptedRuntime(Throwable t)
public static InterruptedRuntimeException interruptedRuntime(String s)
public static InterruptedRuntimeException interruptedRuntime(String s, Throwable t)
public static UnsupportedEncodingRuntimeException unsupportedEncoding()
public static UnsupportedEncodingRuntimeException unsupportedEncoding(Throwable t)
public static UnsupportedEncodingRuntimeException unsupportedEncoding(String s)
public static UnsupportedEncodingRuntimeException unsupportedEncoding(String s, Throwable t)
public static TimeoutException timeout()
public static TimeoutException timeout(Throwable t)
public static TimeoutException timeout(String s)
public static TimeoutException timeout(String s, Throwable t)
public static ConnectionRuntimeException connection()
public static ConnectionRuntimeException connection(Throwable t)
public static ConnectionRuntimeException connection(String s)
public static ConnectionRuntimeException connection(String s, Throwable t)
public static FtpException ftp()
public static FtpException ftp(Throwable t)
public static FtpException ftp(String s)
public static FtpException ftp(String s, Throwable t)
public static SftpException sftp()
public static SftpException sftp(Throwable t)
public static SftpException sftp(String s)
public static SftpException sftp(String s, Throwable t)
public static HttpRequestException httpRequest(String url)
public static HttpRequestException httpRequest(String url, Throwable t)
public static HttpRequestException httpRequest(String url, String msg)
public static HttpRequestException httpRequest(String url, String msg, Throwable t)
public static HttpUnsupportedMethodException httpUnsupportedMethod()
public static HttpUnsupportedMethodException httpUnsupportedMethod(Throwable t)
public static HttpUnsupportedMethodException httpUnsupportedMethod(String s)
public static HttpUnsupportedMethodException httpUnsupportedMethod(String s, Throwable t)
public static AuthenticationException authentication()
public static AuthenticationException authentication(Throwable t)
public static AuthenticationException authentication(String s)
public static AuthenticationException authentication(String s, Throwable t)
public static ExecuteException execute()
public static ExecuteException execute(Throwable t)
public static ExecuteException execute(String s)
public static ExecuteException execute(String s, Throwable t)
public static ConvertException convert()
public static ConvertException convert(Throwable t)
public static ConvertException convert(String s)
public static ConvertException convert(String s, Throwable t)
public static EncryptException encrypt()
public static EncryptException encrypt(Throwable t)
public static EncryptException encrypt(String s)
public static EncryptException encrypt(String s, Throwable t)
public static DecryptException decrypt()
public static DecryptException decrypt(Throwable t)
public static DecryptException decrypt(String s)
public static DecryptException decrypt(String s, Throwable t)
public static UnsupportedOperationException unsupported()
public static UnsupportedOperationException unsupported(Throwable t)
public static UnsupportedOperationException unsupported(String s)
public static UnsupportedOperationException unsupported(String s, Throwable t)
public static IllegalStateException state()
public static IllegalStateException state(Throwable t)
public static IllegalStateException state(String s)
public static IllegalStateException state(String s, Throwable t)
public static NotFoundException notFound()
public static NotFoundException notFound(Throwable t)
public static NotFoundException notFound(String s)
public static NotFoundException notFound(String s, Throwable t)
public static WatchException watch()
public static WatchException watch(Throwable t)
public static WatchException watch(String s)
public static WatchException watch(String s, Throwable t)
public static SignInvalidException sign()
public static SignInvalidException sign(Throwable t)
public static SignInvalidException sign(String s)
public static SignInvalidException sign(String s, Throwable t)
public static NoSuchElementException noSuchElement()
public static NoSuchElementException noSuchElement(String s)
public static TaskExecuteException task()
public static TaskExecuteException task(Throwable t)
public static TaskExecuteException task(String s)
public static TaskExecuteException task(String s, Throwable t)
public static ScriptExecuteException script()
public static ScriptExecuteException script(Throwable t)
public static ScriptExecuteException script(String s)
public static ScriptExecuteException script(String s, Throwable t)
public static ScriptExecuteException script(ScriptException e)
public static VcsException vcs()
public static VcsException vcs(Throwable t)
public static VcsException vcs(String s)
public static VcsException vcs(String s, Throwable t)
public static LogException log()
public static LogException log(Throwable t)
public static LogException log(String s)
public static LogException log(String s, Throwable t)
public static EnabledException enabled()
public static EnabledException enabled(Throwable t)
public static EnabledException enabled(String s)
public static EnabledException enabled(String s, Throwable t)
public static DisabledException disabled()
public static DisabledException disabled(Throwable t)
public static DisabledException disabled(String s)
public static DisabledException disabled(String s, Throwable t)
public static Error error()
public static InvalidArgumentException invalidArgument()
public static InvalidArgumentException invalidArgument(Throwable t)
public static InvalidArgumentException invalidArgument(String s)
public static InvalidArgumentException invalidArgument(String s, Throwable t)
public static NullArgumentException nullArgument()
public static NullArgumentException nullArgument(Throwable t)
public static NullArgumentException nullArgument(String s)
public static NullArgumentException nullArgument(String s, Throwable t)
public static IndexArgumentException indexArgument()
public static IndexArgumentException indexArgument(Throwable t)
public static IndexArgumentException indexArgument(String s)
public static IndexArgumentException indexArgument(String s, Throwable t)
public static IndexArgumentException indexArgument(int index)
public static IndexArgumentException indexArgument(int index, Throwable t)
public static IndexArgumentException indexArgument(int index, String s)
public static IndexArgumentException indexArgument(int index, String s, Throwable t)
public static UnMatchArgumentException unMatchArgument()
public static UnMatchArgumentException unMatchArgument(Throwable t)
public static UnMatchArgumentException unMatchArgument(String s)
public static UnMatchArgumentException unMatchArgument(String s, Throwable t)
public static CodeArgumentException codeArgument()
public static CodeArgumentException codeArgument(Throwable t)
public static CodeArgumentException codeArgument(String s)
public static CodeArgumentException codeArgument(String s, Throwable t)
public static CodeArgumentException codeArgument(int code)
public static CodeArgumentException codeArgument(int code, Throwable t)
public static CodeArgumentException codeArgument(int code, String s)
public static CodeArgumentException codeArgument(int code, String s, Throwable t)
public static WrapperException wrapper(Wrapper<?> wrapper)
public static WrapperException wrapper(Wrapper<?> wrapper, Throwable t)
public static HttpWrapperException httpWrapper(HttpWrapper<?> wrapper)
public static HttpWrapperException httpWrapper(HttpWrapper<?> wrapper, Throwable t)
public static HttpWrapperException httpWrapper(CodeInfo code)
public static HttpWrapperException httpWrapper(CodeInfo code, Throwable t)
public static RpcWrapperException rpcWrapper(RpcWrapper<?> wrapper)
public static RpcWrapperException rpcWrapper(RpcWrapper<?> wrapper, Throwable t)
public static RpcWrapperException rpcWrapper(CodeInfo code)
public static RpcWrapperException rpcWrapper(CodeInfo code, Throwable t)
Copyright © 2024. All rights reserved.