code: public static UnitResponse createException(String errCode, Throwable exception) {
          return UnitResponse.createException(exception).setCode(errCode);
      }
docs: Create an exception unit response object.
  
  @param errCode   the error code for the unit response.
  @param exception the exception object.
  @return the newly created unit response.