public static KbRuntimeException fromThrowable ( Throwable cause ) { return ( cause instanceof KbRuntimeException ) ? ( KbRuntimeException ) cause : new KbRuntimeException ( cause ) ; }
Converts a Throwable to a KbRuntimeException . If the Throwable is a KbRuntimeException it will be passed through unmodified ; otherwise it will be wrapped in a new KbRuntimeException .