Package org.kurento.commons.exception
Class Assert
java.lang.Object
org.kurento.commons.exception.Assert
Assertion class to validate parameters within Content API.
- Version:
- 1.0.0
- Author:
- Boni GarcĂa (bgarcia@gsyc.es)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidisTrue(boolean condition, int errorCode) Deprecated.static voidDeprecated.static voidAsserts that an object is not null; if it is null, a KurentoMediaFrameworkException is thrown.static voidDeprecated.static voidAsserts that an object is not null; if it is null, a KurentoMediaFrameworkException is thrown.static voidDeprecated.
-
Constructor Details
-
Assert
public Assert()
-
-
Method Details
-
notNull
Deprecated.Asserts that an object is not null; if it is null, a KurentoMediaFrameworkException is thrown.- Parameters:
object- Object to be checked whether or not is nullerrorCode- Error code which determines the exception to be raise if the object is null
-
notNull
Asserts that an object is not null; if it is null, a KurentoMediaFrameworkException is thrown.- Parameters:
object- Object to be checked whether or not is null
-
notNull
Deprecated.Asserts that an object is not null; if it is null, a KurentoMediaFrameworkException is thrown. In addition, a message passed as parameter is appended at the end of the error description.- Parameters:
object- Object to be checked whether or not is nullmessage- Message to be appended at the end of the description errorerrorCode- Error code which determines the exception to be raise if the object is null
-
notNull
Asserts that an object is not null; if it is null, a KurentoMediaFrameworkException is thrown. In addition, a message passed as parameter is appended at the end of the error description.- Parameters:
object- Object to be checked whether or not is nullmessage- Message to be appended at the end of the description error
-
isTrue
Deprecated.Asserts whether or not a condition is met; if not, a KurentoMediaFrameworkException is thrown. In addition, a message passed as parameter is appended at the end of the error description.- Parameters:
condition- Boolean condition to be checkederrorCode- Error code which determines the exception to be raise if the condition is not met
-
isTrue
Deprecated.Asserts whether or not a condition is met; if not, a KurentoMediaFrameworkException is thrown.- Parameters:
condition- Boolean condition to be checkedmessage- the message to show in case the assertion failserrorCode- Error code which determines the exception to be raise if the condition is not met
-