method

set_error

set_error(type, message)
protected

Set an error (a protected method).