Kactoos

kactoos-jvm / nnl.rocks.kactoos.io / CheckedBytes

CheckedBytes

class CheckedBytes<E> : Bytes

Bytes that throws exception of specified type.

Parameters

E - Exception’s type.

origin - Origin bytes.

func - Function that wraps exceptions.

Since 0.4

Constructors

Name Summary
<init> CheckedBytes(origin: Bytes, func: KFunc<Exception, E>)
Bytes that throws exception of specified type.

Functions

Name Summary
asBytes fun asBytes(): ByteArray
Convert it to the byte array.