public final class ExceptionDecor extends Object implements Formattable
For example:
try { // ... } catch (IOException ex) { Logger.error("failed to open file: %[exception]s", ex); throw new IllegalArgumentException(ex); }
Constructor and Description |
---|
ExceptionDecor(Throwable thr)
Public ctor.
|
public ExceptionDecor(Throwable thr)
thr
- The exceptionpublic void formatTo(Formatter formatter, int flags, int width, int precision)
formatTo
in interface Formattable
Copyright © 2012 jcabi.com. All Rights Reserved.