public class MockServerException extends RuntimeException
| Constructor and Description |
|---|
MockServerException(String message) |
MockServerException(String message,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static RuntimeException |
launderThrowable(String message,
Throwable cause)
Wraps the provided
Throwable in a MockServerException in case it's checked exception. |
static RuntimeException |
launderThrowable(Throwable cause)
Wraps the provided
Throwable in a MockServerException in case it's checked exception. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MockServerException(String message)
public static RuntimeException launderThrowable(Throwable cause)
Throwable in a MockServerException in case it's checked exception.
For RuntimeException instances, the original exception is returned.
cause - Throwable to wrap.public static RuntimeException launderThrowable(String message, Throwable cause)
Throwable in a MockServerException in case it's checked exception.
For RuntimeException instances, the original exception is returned.
message - Message to use for the exception.cause - Throwable to wrap.Copyright © 2015–2024 Red Hat. All rights reserved.