Class UpfProgrammableException
- java.lang.Object
 - 
- java.lang.Throwable
 - 
- java.lang.Exception
 - 
- org.onosproject.net.behaviour.upf.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
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpfProgrammableException.Type 
- 
Constructor Summary
Constructors Constructor Description UpfProgrammableException(String message)Creates a new exception for the given message.UpfProgrammableException(String message, UpfProgrammableException.Type type)Creates a new exception for the given message and type.UpfProgrammableException(String message, UpfProgrammableException.Type type, UpfEntityType entityType)Creates a new exception for the given message, type and entity type. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<UpfEntityType>getEntityType()Get the type of the entity that generated the exception.UpfProgrammableException.TypegetType()Get the type of the exception.- 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
 - 
 
 - 
 
- 
- 
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 messagetype- 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 messagetype- exception typeentityType- entity type
 
 - 
 
- 
Method Detail
- 
getType
public UpfProgrammableException.Type getType()
Get the type of the exception.- Returns:
 - exception type
 
 
- 
getEntityType
public Optional<UpfEntityType> getEntityType()
Get the type of the entity that generated the exception.- Returns:
 - entity type
 
 
 - 
 
 -