Package org.cloudbus.cloudsim.util
Class InvalidEventDataTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.cloudbus.cloudsim.util.InvalidEventDataTypeException
- All Implemented Interfaces:
Serializable
An exception to be raised when the type of the
SimEvent.getData()
is not as expected for a given tag from CloudSimTag
.- Since:
- CloudSim Plus 7.0.1
- Author:
- Manoel Campos da Silva Filho
- See Also:
-
Constructor Summary
ConstructorDescriptionInvalidEventDataTypeException
(SimEvent evt, String tagName, String requiredClassName) Instantiates the exception -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidEventDataTypeException
Instantiates the exception- Parameters:
evt
- the event having invalid data typetagName
- the name of the tag fromCloudSimTag
that generated the eventrequiredClassName
- the name of the required class wasn't met. It's String to enable providing specific type names using generics, such "Set" instead of just Set.
-