private void buildErrorStatus ( ObjectResult result , String objID , Throwable ex ) { result . setStatus ( ObjectResult . Status . ERROR ) ; result . setErrorMessage ( ex . getLocalizedMessage ( ) ) ; if ( ! Utils . isEmpty ( objID ) ) { result . setObjectID ( objID ) ; } if ( ex instanceof IllegalArgumentException ) { m_logger . debug ( "Object update error: {}" , ex . toString ( ) ) ; } else { result . setStackTrace ( Utils . getStackTrace ( ex ) ) ; m_logger . debug ( "Object update error: {} stacktrace: {}" , ex . toString ( ) , Utils . getStackTrace ( ex ) ) ; } }
Add error fields to the given ObjectResult due to the given exception .