See primary documentation in context for method role
method role()
Returns the role that caused the error.