public final class ThrowableAsBytes extends Object implements Bytes
This class is doing something similar to what ExceptionUtils are doing from Apache Commons.
There is no thread-safety guarantee.
Bytes.NoNulls
Constructor and Description |
---|
ThrowableAsBytes(Throwable error)
Ctor.
|
public ThrowableAsBytes(Throwable error)
error
- The exception to serializepublic byte[] asBytes() throws IOException
Bytes
asBytes
in interface Bytes
IOException
- If failsCopyright © 2017 Cactoos. All rights reserved.