public RuntimeException traceError( RuntimeException cause ) {
        getLogger().log( Level.SEVERE, "Error during deserialization", cause );
        if ( wrapExceptions ) {
            return new JsonDeserializationException( cause );
        } else {
            return cause;
        }
    }
public RuntimeException traceError ( RuntimeException cause ) { getLogger ( ) . log ( Level . SEVERE , "Error during deserialization" , cause ) ; if ( wrapExceptions ) { return new JsonDeserializationException ( cause ) ; } else { return cause ; } }
Trace an error and returns a corresponding exception.

@param cause cause of the error

@return a {@link JsonDeserializationException} if we wrap the exceptions, the cause otherwise