code: public String getMessage(Context context) {
          if (customMessage != null) {
              return customMessage;
          }
          return context.getResources().getString(message);
      }
docs: Getter for the error message.
  
  @param context a valid context.
  @return the user friendly message