code: public Message getError(int index) {
          if (index < getErrorCount()) {
              return (Message) this.errors.get(index);
          }
          return null;
      }
docs: Returns the specified error message, or null.