Class UpfProgrammableException

  • All Implemented Interfaces:
    Serializable

    @Beta
    public class UpfProgrammableException
    extends Exception
    An exception indicating a an error happened in the UPF programmable behaviour. Possible errors include the attempted insertion of a malformed flow rule, the reading or writing of an out-of-bounds counter cell, the deletion of a non-existent flow rule, and the attempted insertion of a flow rule into a full table.
    See Also:
    Serialized Form
    • Constructor Detail

      • UpfProgrammableException

        public UpfProgrammableException​(String message)
        Creates a new exception for the given message.
        Parameters:
        message - message
      • UpfProgrammableException

        public UpfProgrammableException​(String message,
                                        UpfProgrammableException.Type type)
        Creates a new exception for the given message and type.
        Parameters:
        message - exception message
        type - exception type
      • UpfProgrammableException

        public UpfProgrammableException​(String message,
                                        UpfProgrammableException.Type type,
                                        UpfEntityType entityType)
        Creates a new exception for the given message, type and entity type.
        Parameters:
        message - exception message
        type - exception type
        entityType - entity type
    • Method Detail

      • getEntityType

        public Optional<UpfEntityType> getEntityType()
        Get the type of the entity that generated the exception.
        Returns:
        entity type