kactoos-jvm / nnl.rocks.kactoos.io / CheckedBytes
class CheckedBytes<E> : Bytes
Bytes that throws exception of specified type.
E - Exception’s type.
origin - Origin bytes.
func - Function that wraps exceptions.
Since 0.4
| Name | Summary |
|---|---|
| <init> | CheckedBytes(origin: Bytes, func: KFunc<Exception, E>)Bytes that throws exception of specified type. |
| Name | Summary |
|---|---|
| asBytes | fun asBytes(): ByteArrayConvert it to the byte array. |