Enum PApplicationExceptionType

    • Enum Constant Detail

      • UNKNOWN

        public static final PApplicationExceptionType UNKNOWN
        Unknown or unidentified exception, should usually not be uased.
      • UNKNOWN_METHOD

        public static final PApplicationExceptionType UNKNOWN_METHOD
        There is no such method defined on the service.
      • INVALID_MESSAGE_TYPE

        public static final PApplicationExceptionType INVALID_MESSAGE_TYPE
        The service call type does not make sense, or is plain wrong, e.g. sending 'reply' or 'exception' as the request.
      • WRONG_METHOD_NAME

        public static final PApplicationExceptionType WRONG_METHOD_NAME
        The response came back with a non-matching method name.
      • BAD_SEQUENCE_ID

        public static final PApplicationExceptionType BAD_SEQUENCE_ID
        The response came back with a non-matching sequence ID.
      • MISSING_RESULT

        public static final PApplicationExceptionType MISSING_RESULT
        The response did not have a defined non-null result.

        NOTE: This is the default behavior from thrift, and we may need to keep it this way as long as thrift compatibility is expected.

      • INTERNAL_ERROR

        public static final PApplicationExceptionType INTERNAL_ERROR
        The service handler or client handler experienced internal problem.
      • PROTOCOL_ERROR

        public static final PApplicationExceptionType PROTOCOL_ERROR
        Serialization or deserialization failed or the deserialized content was not valid for the requested message.

        NOTE: In providence this is valid for server (processor) side serialization errors.

      • INVALID_TRANSFORM

        public static final PApplicationExceptionType INVALID_TRANSFORM
        NOTE: This value is apparently not in use in thrift.
      • INVALID_PROTOCOL

        public static final PApplicationExceptionType INVALID_PROTOCOL
        The requested protocol (or version) is not supported.
      • UNSUPPORTED_CLIENT_TYPE

        public static final PApplicationExceptionType UNSUPPORTED_CLIENT_TYPE
        NOTE: This value is apparently not in use in thrift.
    • Method Detail

      • values

        public static PApplicationExceptionType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PApplicationExceptionType c : PApplicationExceptionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PApplicationExceptionType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • asInteger

        public int asInteger()
        Specified by:
        asInteger in interface net.morimekta.util.Numeric
      • asString

        @Nonnull
        public java.lang.String asString()
        Specified by:
        asString in interface net.morimekta.util.Stringable
      • findById

        @Nullable
        public static PApplicationExceptionType findById​(java.lang.Integer id)
        Find a value based in its ID
        Parameters:
        id - Id of value
        Returns:
        Value found or null
      • findByName

        @Nullable
        public static PApplicationExceptionType findByName​(java.lang.String name)
        Find a value based in its name
        Parameters:
        name - Name of value
        Returns:
        Value found or null
      • valueForId

        @Nonnull
        public static PApplicationExceptionType valueForId​(int id)
        Get a value based in its ID
        Parameters:
        id - Id of value
        Returns:
        Value found
        Throws:
        java.lang.IllegalArgumentException - If no value for id is found
      • valueForName

        @Nonnull
        public static PApplicationExceptionType valueForName​(@Nonnull
                                                             java.lang.String name)
        Get a value based in its name
        Parameters:
        name - Name of value
        Returns:
        Value found
        Throws:
        java.lang.IllegalArgumentException - If no value for name is found, or null name