-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: fireblocks_dx_team <[email protected]>
- Loading branch information
1 parent
5ea3717
commit 379283d
Showing
33 changed files
with
517 additions
and
1,368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Fireblocks API | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: 1.6.2 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
package com.fireblocks.sdk; | ||
|
||
public class ValidationUtils { | ||
|
||
public static void assertParamExistsAndNotEmpty( | ||
String functionName, String paramName, String paramValue) throws ApiException { | ||
ValidationUtils.assertParamExists(functionName, paramName, paramValue); | ||
if (paramValue.isEmpty()) { | ||
throw new ApiException( | ||
400, | ||
String.format( | ||
"The required parameter '%s' was empty when calling '%s'", | ||
paramName, functionName)); | ||
} | ||
} | ||
|
||
public static void assertParamExists(String functionName, String paramName, Object paramValue) | ||
throws ApiException { | ||
if (paramValue == null) { | ||
throw new ApiException( | ||
400, | ||
String.format( | ||
"The required parameter '%s' is missing from call to '%s'", | ||
paramName, functionName)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.