Enum Class TwitterErrorCode

java.lang.Object
java.lang.Enum<TwitterErrorCode>
com.northconcepts.datapipeline.twitter.TwitterErrorCode
All Implemented Interfaces:
Serializable, Comparable<TwitterErrorCode>, Constable

public enum TwitterErrorCode extends Enum<TwitterErrorCode>
Known Twitter API error codes, each with its error message and a longer description.
  • Enum Constant Details

    • COULD_NOT_AUTHENTICATE_YOU

      public static final TwitterErrorCode COULD_NOT_AUTHENTICATE_YOU
    • PAGE_DOES_NOT_EXIST

      public static final TwitterErrorCode PAGE_DOES_NOT_EXIST
    • CANNOT_REPORT_YOURSELF_FOR_SPAM

      public static final TwitterErrorCode CANNOT_REPORT_YOURSELF_FOR_SPAM
    • ATTACHMENT_URL_PARAMETER_IS_INVALID

      public static final TwitterErrorCode ATTACHMENT_URL_PARAMETER_IS_INVALID
    • USER_NOT_FOUND

      public static final TwitterErrorCode USER_NOT_FOUND
    • USER_HAS_BEEN_SUSPENDED

      public static final TwitterErrorCode USER_HAS_BEEN_SUSPENDED
    • YOUR_ACCOUNT_IS_SUSPENDED

      public static final TwitterErrorCode YOUR_ACCOUNT_IS_SUSPENDED
    • TWITTER_REST_API_V1_IS_NO_LONGER_ACTIVE

      public static final TwitterErrorCode TWITTER_REST_API_V1_IS_NO_LONGER_ACTIVE
    • RATE_LIMIT_EXCEEDED

      public static final TwitterErrorCode RATE_LIMIT_EXCEEDED
    • INVALID_OR_EXPIRED_TOKEN

      public static final TwitterErrorCode INVALID_OR_EXPIRED_TOKEN
    • SSL_REQUIRED

      public static final TwitterErrorCode SSL_REQUIRED
    • UNABLE_TO_VERIFY_YOUR_CREDENTIALS

      public static final TwitterErrorCode UNABLE_TO_VERIFY_YOUR_CREDENTIALS
    • OVER_CAPACITY

      public static final TwitterErrorCode OVER_CAPACITY
    • INTERNAL_ERROR

      public static final TwitterErrorCode INTERNAL_ERROR
    • COULD_NOT_AUTHENTICATE_YOU_2

      public static final TwitterErrorCode COULD_NOT_AUTHENTICATE_YOU_2
    • NO_STATUS_FOUND_WITH_THAT_ID

      public static final TwitterErrorCode NO_STATUS_FOUND_WITH_THAT_ID
    • YOU_ARE_UNABLE_TO_FOLLOW_MORE_PEOPLE_AT_THIS_TIME

      public static final TwitterErrorCode YOU_ARE_UNABLE_TO_FOLLOW_MORE_PEOPLE_AT_THIS_TIME
    • YOU_ARE_NOT_AUTHORIZED_TO_SEE_THIS_STATUS

      public static final TwitterErrorCode YOU_ARE_NOT_AUTHORIZED_TO_SEE_THIS_STATUS
    • USER_IS_OVER_DAILY_STATUS_UPDATE_LIMIT

      public static final TwitterErrorCode USER_IS_OVER_DAILY_STATUS_UPDATE_LIMIT
    • STATUS_IS_A_DUPLICATE

      public static final TwitterErrorCode STATUS_IS_A_DUPLICATE
    • OVER_SPAM_REPORT_LIMIT

      public static final TwitterErrorCode OVER_SPAM_REPORT_LIMIT
    • BAD_AUTHENTICATION_DATA

      public static final TwitterErrorCode BAD_AUTHENTICATION_DATA
    • REQUEST_MIGHT_BE_AUTOMATED

      public static final TwitterErrorCode REQUEST_MIGHT_BE_AUTOMATED
    • USER_MUST_VERIFY_LOGIN

      public static final TwitterErrorCode USER_MUST_VERIFY_LOGIN
    • ENDPOINT_RETIRED

      public static final TwitterErrorCode ENDPOINT_RETIRED
    • APPLICATION_CANNOT_PERFORM_WRITE_ACTIONS

      public static final TwitterErrorCode APPLICATION_CANNOT_PERFORM_WRITE_ACTIONS
    • CANNOT_MUTE_YOURSELF

      public static final TwitterErrorCode CANNOT_MUTE_YOURSELF
    • USER_NOT_MUTTED

      public static final TwitterErrorCode USER_NOT_MUTTED
    • ANIMATED_GIFS_ARE_NOT_ALLOWED

      public static final TwitterErrorCode ANIMATED_GIFS_ARE_NOT_ALLOWED
    • INVALID_MEDIA_ID

      public static final TwitterErrorCode INVALID_MEDIA_ID
    • MEDIA_ID_NOT_FOUND

      public static final TwitterErrorCode MEDIA_ID_NOT_FOUND
    • DIRECT_MESSAGE_TEXT_TOO_LONG

      public static final TwitterErrorCode DIRECT_MESSAGE_TEXT_TOO_LONG
    • TWEET_DELETED_OR_NOT_VISIBLE_TO_YOU

      public static final TwitterErrorCode TWEET_DELETED_OR_NOT_VISIBLE_TO_YOU
    • TOO_MANY_ATTACHMENT_TYPES

      public static final TwitterErrorCode TOO_MANY_ATTACHMENT_TYPES
  • Method Details

    • values

      public static TwitterErrorCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TwitterErrorCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public int getCode()
    • getUserMessage

      public String getUserMessage()
      Returns the short error message for this code.
    • getDescription

      public String getDescription()
      Returns a longer explanation of when this error occurs.
    • lookup

      public static TwitterErrorCode lookup(Integer value)
      Returns the constant with the given error code, or null if value is null or unknown.