object mkerror(mixed error)
Returns an Error object for any argument it receives. If the argument already is an Error object or is empty, it does nothing.