Example usage for org.apache.commons.lang3.exception DefaultExceptionContext DefaultExceptionContext

List of usage examples for org.apache.commons.lang3.exception DefaultExceptionContext DefaultExceptionContext

Introduction

In this page you can find the example usage for org.apache.commons.lang3.exception DefaultExceptionContext DefaultExceptionContext.

Prototype

DefaultExceptionContext

Source Link

Usage

From source file:com.joyent.triton.exceptions.CloudApiIOException.java

/**
 * Constructs an {@code CloudApiIOException} with {@code null}
 * as its error detail message.
 */
public CloudApiIOException() {
    exceptionContext = new DefaultExceptionContext();
}

From source file:com.joyent.manta.exception.MantaIOException.java

/**
 * Constructs an instance with {@code null}
 * as its error detail message./*w w w .  ja v  a 2  s.  c o m*/
 */
public MantaIOException() {
    exceptionContext = new DefaultExceptionContext();
    addContextValue("mantaSdkVersion", MantaVersion.VERSION);
}

From source file:com.joyent.triton.exceptions.CloudApiIOException.java

/**
 * Constructs an {@code CloudApiIOException} with the specified detail message.
 *
 * @param message// ww w.  j a va2s.  c o m
 *        The detail message (which is saved for later retrieval
 *        by the {@link #getMessage()} method)
 */
public CloudApiIOException(final String message) {
    super(message);
    exceptionContext = new DefaultExceptionContext();
}

From source file:com.anrisoftware.simplerest.oanda.historyexporter.HistoryExportException.java

/**
 * @see Exception#Exception(String, Throwable)
 *//*  w w  w. ja va2  s  .  c o  m*/
protected HistoryExportException(String message, Throwable cause) {
    super(message, cause);
    this.exceptionContext = new DefaultExceptionContext();
}

From source file:com.anrisoftware.simplerest.oanda.historyexporter.HistoryExportException.java

/**
 * @see Exception#Exception(String)/* w  w w . ja v a  2  s.  com*/
 */
protected HistoryExportException(String message) {
    super(message);
    this.exceptionContext = new DefaultExceptionContext();
}

From source file:com.joyent.manta.exception.MantaIOException.java

/**
 * Constructs an instance with the specified detail message.
 *
 * @param message/*from w w w.  j a  v  a2s .  co m*/
 *        The detail message (which is saved for later retrieval
 *        by the {@link #getMessage()} method)
 */
public MantaIOException(final String message) {
    super(message);
    exceptionContext = new DefaultExceptionContext();
    addContextValue("mantaSdkVersion", MantaVersion.VERSION);
}

From source file:com.anrisoftware.simplerest.oanda.historyexporter.HistoryExportException.java

/**
 * @see Exception#Exception(String, Throwable)
 *///  w ww.  j a  va  2 s .  c o  m
protected HistoryExportException(Object message, Throwable cause) {
    super(message.toString(), cause);
    this.exceptionContext = new DefaultExceptionContext();
}

From source file:com.anrisoftware.simplerest.oanda.historyexporter.HistoryExportException.java

/**
 * @see Exception#Exception(String)//from   w  w  w .j  av  a  2s  .  co  m
 */
protected HistoryExportException(Object message) {
    super(message.toString());
    this.exceptionContext = new DefaultExceptionContext();
}

From source file:com.joyent.triton.exceptions.CloudApiIOException.java

/**
 * Constructs an {@code CloudApiIOException} with the specified detail message
 * and cause./*www  . j  av  a2 s .  c om*/
 *
 * <p> Note that the detail message associated with {@code cause} is
 * <i>not</i> automatically incorporated into this exception's detail
 * message.
 *
 * @param message
 *        The detail message (which is saved for later retrieval
 *        by the {@link #getMessage()} method)
 *
 * @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 String message, final Throwable cause) {
    super(message, cause);
    exceptionContext = new DefaultExceptionContext();
}

From source file:com.joyent.manta.exception.MantaIOException.java

/**
 * Constructs an instance with the specified detail message
 * and cause./*from   w  ww  .  j av a 2s .  com*/
 *
 * <p> Note that the detail message associated with {@code cause} is
 * <i>not</i> automatically incorporated into this exception's detail
 * message.
 *
 * @param message
 *        The detail message (which is saved for later retrieval
 *        by the {@link #getMessage()} method)
 *
 * @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 String message, final Throwable cause) {
    super(message, cause);
    exceptionContext = new DefaultExceptionContext();
    addContextValue("mantaSdkVersion", MantaVersion.VERSION);
}