class AccessError(bb.Union): (source)
Error occurred because the account doesn't have permission to access the resource. This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar InvalidAccountTypeError AccessError.invalid_account_type: Current account type cannot access the resource. :ivar PaperAccessError AccessError.paper_access_denied: Current account cannot access Paper.
Class Method | invalid |
Create an instance of this class set to the ``invalid_account_type`` tag with value ``val``. |
Class Method | paper |
Create an instance of this class set to the ``paper_access_denied`` tag with value ``val``. |
Method | get |
Current account type cannot access the resource. |
Method | get |
Current account cannot access Paper. |
Method | is |
Check if the union tag is ``invalid_account_type``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``paper_access_denied``. |
Class Variable | other |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``invalid_account_type`` tag with value ``val``. :param InvalidAccountTypeError val: :rtype: AccessError
Create an instance of this class set to the ``paper_access_denied`` tag with value ``val``. :param PaperAccessError val: :rtype: AccessError
Current account type cannot access the resource. Only call this if :meth:`is_invalid_account_type` is true. :rtype: InvalidAccountTypeError
Current account cannot access Paper. Only call this if :meth:`is_paper_access_denied` is true. :rtype: PaperAccessError