Package schrodinger :: Package test :: Package stu :: Package outcomes :: Module structure_comparisons :: Class CompositeFailure
[hide private]
[frames] | no frames]

Class CompositeFailure

              object --+                    
                       |                    
exceptions.BaseException --+                
                           |                
        exceptions.Exception --+            
                               |            
        exceptions.StandardError --+        
                                   |        
           exceptions.AssertionError --+    
                                       |    
                  failures.WorkupFailure --+
                                           |
                                          CompositeFailure

Failures with lists or dicts of nested differences.

Instance Methods [hide private]
 
__str__(self)
str(x)
 
__repr__(self)
str(x)
 
formattedDetails(self, width=80, max_number=5)
Return a formatted version of the detailed diffs.
 
_getShortenedDetails(self, max_number=5)
If max_number is not -1, only max_number of diffs will be returned.
 
_shortenList(self, original, max_number=5)
Shorten a list.
 
_shortenDict(self, original, max_number=5)
Shorten a dict.

Inherited from exceptions.AssertionError: __init__, __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __setattr__, __setstate__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from failures.WorkupFailure: failure_type

Properties [hide private]

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details [hide private]

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

 

str(x)

Overrides: object.__repr__
(inherited documentation)

formattedDetails(self, width=80, max_number=5)

 

Return a formatted version of the detailed diffs. If max_number is not -1, only max_number of diffs will be returned.