IsError / LastError
See the vendor object
IsError
property for more information.