class documentation

class AccessError(bb.Union): (source)

View In Hierarchy

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_account_type Create an instance of this class set to the ``invalid_account_type`` tag with value ``val``.
Class Method paper_access_denied Create an instance of this class set to the ``paper_access_denied`` tag with value ``val``.
Method get_invalid_account_type Current account type cannot access the resource.
Method get_paper_access_denied Current account cannot access Paper.
Method is_invalid_account_type Check if the union tag is ``invalid_account_type``.
Method is_other Check if the union tag is ``other``.
Method is_paper_access_denied Check if the union tag is ``paper_access_denied``.
Class Variable other Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def invalid_account_type(cls, val): (source)

Create an instance of this class set to the ``invalid_account_type`` tag with value ``val``. :param InvalidAccountTypeError val: :rtype: AccessError

@classmethod
def paper_access_denied(cls, val): (source)

Create an instance of this class set to the ``paper_access_denied`` tag with value ``val``. :param PaperAccessError val: :rtype: AccessError

def get_invalid_account_type(self): (source)

Current account type cannot access the resource. Only call this if :meth:`is_invalid_account_type` is true. :rtype: InvalidAccountTypeError

def get_paper_access_denied(self): (source)

Current account cannot access Paper. Only call this if :meth:`is_paper_access_denied` is true. :rtype: PaperAccessError

def is_invalid_account_type(self): (source)

Check if the union tag is ``invalid_account_type``. :rtype: bool

def is_other(self): (source)

Check if the union tag is ``other``. :rtype: bool

def is_paper_access_denied(self): (source)

Check if the union tag is ``paper_access_denied``. :rtype: bool

Undocumented

def _process_custom_annotations(self, annotation_type, field_path, processor): (source)

Undocumented

_catch_all: str = (source)

Undocumented