Use System::assert() to check for errors.
Add a type to assert() to identify type of exception to throw.