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