Public Member Functions | Private Attributes | List of all members
mox.UnexpectedMethodCallError Class Reference
Inheritance diagram for mox.UnexpectedMethodCallError:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, unexpected_method, expected)
 
def __init__ (self, unexpected_method, expected)
 
def __str__ (self)
 
def __str__ (self)
 

Private Attributes

 _expected
 
 _unexpected_method
 

Detailed Description

Raised when an unexpected method is called.

This can occur if a method is called with incorrect parameters, or out of the
specified order.

Definition at line 102 of file bloaty/third_party/protobuf/python/mox.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def mox.UnexpectedMethodCallError.__init__ (   self,
  unexpected_method,
  expected 
)
Init exception.

Args:
  # unexpected_method: MockMethod that was called but was not at the head of
  #   the expected_method queue.
  # expected: MockMethod or UnorderedGroup the method should have
  #   been in.
  unexpected_method: MockMethod
  expected: MockMethod or UnorderedGroup

Definition at line 109 of file bloaty/third_party/protobuf/python/mox.py.

◆ __init__() [2/2]

def mox.UnexpectedMethodCallError.__init__ (   self,
  unexpected_method,
  expected 
)
Init exception.

Args:
  # unexpected_method: MockMethod that was called but was not at the head of
  #   the expected_method queue.
  # expected: MockMethod or UnorderedGroup the method should have
  #   been in.
  unexpected_method: MockMethod
  expected: MockMethod or UnorderedGroup

Definition at line 109 of file protobuf/python/mox.py.

Member Function Documentation

◆ __str__() [1/2]

def mox.UnexpectedMethodCallError.__str__ (   self)

Definition at line 125 of file bloaty/third_party/protobuf/python/mox.py.

◆ __str__() [2/2]

def mox.UnexpectedMethodCallError.__str__ (   self)

Definition at line 125 of file protobuf/python/mox.py.

Member Data Documentation

◆ _expected

mox.UnexpectedMethodCallError._expected
private

Definition at line 123 of file bloaty/third_party/protobuf/python/mox.py.

◆ _unexpected_method

mox.UnexpectedMethodCallError._unexpected_method
private

Definition at line 122 of file bloaty/third_party/protobuf/python/mox.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:41