Class UpfProgrammableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.onosproject.net.behaviour.upf.UpfProgrammableException
-
- All Implemented Interfaces:
Serializable
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 class
UpfProgrammableException.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpfProgrammableException.Type
getType()
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
-
-
Method Detail
-
getType
public UpfProgrammableException.Type getType()
Get the type of the exception.- Returns:
- exception type
-
-