corda / com.r3.corda.networkmanage.common.utils / NetworkManagerCommandExceptionHandler

NetworkManagerCommandExceptionHandler

class NetworkManagerCommandExceptionHandler<R>

This class inherits the core functionality of the DefaultExceptionHandler provided by picocli, with a few tweaks. When a return code on error is specified, the DefaultExceptionHandler has the exception's stacktrace printed to console instead of being rethrown, causing our NetworkServicesUncaughtExceptionHandler to not catch anything and the console output to be incorrect.

Constructors

<init>

NetworkManagerCommandExceptionHandler()

This class inherits the core functionality of the DefaultExceptionHandler provided by picocli, with a few tweaks. When a return code on error is specified, the DefaultExceptionHandler has the exception's stacktrace printed to console instead of being rethrown, causing our NetworkServicesUncaughtExceptionHandler to not catch anything and the console output to be incorrect.

Functions

handleExecutionException

fun handleExecutionException(ex: <ERROR CLASS>, parseResult: <ERROR CLASS>): R?

self

fun self(): NetworkManagerCommandExceptionHandler<R>