check() with error

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-06-08 18:57:14 -03:00
parent e17b2b1809
commit 0e21aa27f6
1 changed files with 2 additions and 0 deletions

View File

@ -263,11 +263,13 @@ Spec(Cloudevent)
/*
* Checks the spec constraints, throwing an error if do not pass.
* @throws Error when it is an invalid event
*/
Spec.check()
/*
* Checks if the argument pass through the spec constraints
* @throws Error when it is an invalid event
*/
Spec.check(Object)