code: public static ErrorItem getBaseError(final StackifyError error) {
  		if (error == null) {
  			throw new NullPointerException("StackifyError is null");
  		}
  
  		ErrorItem errorItem = error.getError();
  
          if (errorItem != null) {
              while (errorItem.getInnerError() != null) {
                  errorItem = errorItem.getInnerError();
              }
          }
  
          return errorItem;
      }
docs: Gets the base error (the last error in the causal chain)
  @param error The error
  @return The inner most error