Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

"Exceptions raised by the coercion model" 

 

############################################################################### 

# SAGE: System for Algebra and Geometry Experimentation 

# Copyright (C) 2009 Robert Bradshaw <robertwb@math.washington.edu> 

# Distributed under the terms of the GNU General Public License (GPL) 

# The full text of the GPL is available at: 

# http://www.gnu.org/licenses/ 

############################################################################### 

 

 

class CoercionException(TypeError): 

""" 

This is the baseclass of exceptions that the coercion model raises 

when trying to discover coercions. We don't use standard Python 

exceptions to avoid inadvertently catching and suppressing real errors. 

 

Usually one raises this to indicate the attempted action isn't 

implemented/appropriate, but if there are other things to try not 

to immediately abort to the user. 

""" 

pass