tryEncode

fun <T : Any> Encapsulator<T>.tryEncode(encoder: <ERROR CLASS>, value: Any): <ERROR CLASS>