@DefaultImplementation(value=org.apache.reef.runtime.common.utils.DefaultExceptionCodec.class) public interface ExceptionCodec
Modifier and Type | Method and Description |
---|---|
Optional<Throwable> |
fromBytes(byte[] bytes)
Deserializes a Throwable that has been serialized using toBytes().
|
Optional<Throwable> |
fromBytes(Optional<byte[]> bytes) |
byte[] |
toBytes(Throwable throwable) |
Optional<Throwable> fromBytes(byte[] bytes)
bytes
- Optional<Throwable> fromBytes(Optional<byte[]> bytes)
bytes
- Copyright © 2016 The Apache Software Foundation. All rights reserved.