public class WrappedCheckedException extends RuntimeException
RuntimeException, który może służyć do chwilowego wrappowania wyjątku checked
Exception w miejscach, gdzie nie jest możliwe rzucanie takich wyjątków (np. klasy Anonymous).| Constructor and Description |
|---|
WrappedCheckedException(Exception exception)
Tworzy wrapper podanego wyjątku.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
Exception |
getWrappedException()
Zwraca oryginalny wyjątek (
checked Exception) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic WrappedCheckedException(Exception exception)
exception - wyjątek, która wrappuje ten wyjątekpublic Exception getWrappedException()
checked Exception)public String getMessage()
getMessage in class ThrowableCopyright © 2023 Suncode. All rights reserved.