KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a service method and have to throw an error if method parameter is null/blank or not numeric. Caller is sending an Integer value but in called method how to check if it is numeric or null. ex: def add(value1,value2){ //have to check value1 is null/blank //check value1 is numeric } caller: class.add(10,20) Any suggestions around would be appreciated.
Tags (comma-separated)
Save Edits
Cancel