check is a generic function for validating the inputs of class objects.
check(object, ...)
| object | object to check. |
|---|---|
| ... | Further arguments passed to or from other methods. Currently unused. |
If validation is successful, returns the object in question; otherwise, informs the user that an error has occurred.