This class encapsulates argument check (null and range) for public facing APIs. Unlike asserts it throws "normal" exceptions with standardized messages.
List of all members.
Static Public Member Functions |
| static void | NotNull (Object val, String name) |
| | Checks if given argument value is not null. Otherwise - throws .
|
| static void | NotNull (Object val1, String name1, Object val2, String name2) |
| | Checks that none of the given values are null. Otherwise - throws .
|
| static void | NotNull (Object val1, String name1, Object val2, String name2, Object val3, String name3) |
| | Checks that none of the given values are null. Otherwise - throws .
|
| static void | NotNull (Object val1, String name1, Object val2, String name2, Object val3, String name3, Object val4, String name4) |
| | Checks that none of the given values are null. Otherwise - throws .
|
| static void | Ensure (bool cond, String desc) |
| | Checks if given argument's condition is equal to true. Otherwise - throws .
|
Member Function Documentation
| static void GridGain.Client.Util.GridClientArgumentCheck.Ensure |
( |
bool |
cond, |
|
|
String |
desc | |
|
) |
| | [static] |
- Parameters:
-
| cond | Argument's value condition to check. |
| desc | Description of the condition to be used in error message. |
| static void GridGain.Client.Util.GridClientArgumentCheck.NotNull |
( |
Object |
val1, |
|
|
String |
name1, |
|
|
Object |
val2, |
|
|
String |
name2 | |
|
) |
| | [static] |
- Parameters:
-
| val1 | 1st argument value to check. |
| name1 | Name of the 1st argument in the code (used in error message). |
| val2 | 2nd argument value to check. |
| name2 | Name of the 2nd argument in the code (used in error message). |
| static void GridGain.Client.Util.GridClientArgumentCheck.NotNull |
( |
Object |
val1, |
|
|
String |
name1, |
|
|
Object |
val2, |
|
|
String |
name2, |
|
|
Object |
val3, |
|
|
String |
name3, |
|
|
Object |
val4, |
|
|
String |
name4 | |
|
) |
| | [static] |
- Parameters:
-
| val1 | 1st argument value to check. |
| name1 | Name of the 1st argument in the code (used in error message). |
| val2 | 2nd argument value to check. |
| name2 | Name of the 2nd argument in the code (used in error message). |
| val3 | 3rd argument value to check. |
| name3 | Name of the 3rd argument in the code (used in error message). |
| val4 | 4th argument value to check. |
| name4 | Name of the 4th argument in the code (used in error message). |
| static void GridGain.Client.Util.GridClientArgumentCheck.NotNull |
( |
Object |
val1, |
|
|
String |
name1, |
|
|
Object |
val2, |
|
|
String |
name2, |
|
|
Object |
val3, |
|
|
String |
name3 | |
|
) |
| | [static] |
- Parameters:
-
| val1 | 1st argument value to check. |
| name1 | Name of the 1st argument in the code (used in error message). |
| val2 | 2nd argument value to check. |
| name2 | Name of the 2nd argument in the code (used in error message). |
| val3 | 3rd argument value to check. |
| name3 | Name of the 3rd argument in the code (used in error message). |
| static void GridGain.Client.Util.GridClientArgumentCheck.NotNull |
( |
Object |
val, |
|
|
String |
name | |
|
) |
| | [static] |
- Parameters:
-
| val | Argument value to check. |
| name | Name of the argument in the code (used in error message). |