List of usage examples for org.apache.commons.lang3.exception DefaultExceptionContext DefaultExceptionContext
DefaultExceptionContext
From source file:com.joyent.triton.exceptions.CloudApiIOException.java
/** * Constructs an {@code CloudApiIOException} with the specified cause and a * detail message of {@code (cause==null ? null : cause.toString())} * (which typically contains the class and detail message of {@code cause}). * This constructor is useful for IO exceptions that are little more * than wrappers for other throwables./*from w w w .ja v a2 s .co m*/ * * @param cause * The cause (which is saved for later retrieval by the * {@link #getCause()} method). (A null value is permitted, * and indicates that the cause is nonexistent or unknown.) */ public CloudApiIOException(final Throwable cause) { super(cause); exceptionContext = new DefaultExceptionContext(); }
From source file:com.joyent.manta.exception.MantaIOException.java
/** * Constructs an instance with the specified cause and a * detail message of {@code (cause==null ? null : cause.toString())} * (which typically contains the class and detail message of {@code cause}). * This constructor is useful for IO exceptions that are little more * than wrappers for other throwables.// w w w.ja v a 2 s .c o m * * @param cause * The cause (which is saved for later retrieval by the * {@link #getCause()} method). (A null value is permitted, * and indicates that the cause is nonexistent or unknown.) */ public MantaIOException(final Throwable cause) { super(cause); exceptionContext = new DefaultExceptionContext(); addContextValue("mantaSdkVersion", MantaVersion.VERSION); }