Assigns contents to an error condition. Sets the error code to val and error category to cat.
val
cat
(none)