~ubuntu-branches/debian/jessie/sqlalchemy/jessie

« back to all changes in this revision

Viewing changes to lib/sqlalchemy/exc.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2013-10-28 22:29:40 UTC
  • mfrom: (1.4.24)
  • Revision ID: package-import@ubuntu.com-20131028222940-wvyqffl4g617caun
Tags: 0.8.3-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
class CompileError(SQLAlchemyError):
73
73
    """Raised when an error occurs during SQL compilation"""
74
74
 
 
75
class UnsupportedCompilationError(CompileError):
 
76
    """Raised when an operation is not supported by the given compiler.
 
77
 
 
78
 
 
79
    .. versionadded:: 0.8.3
 
80
 
 
81
    """
 
82
 
 
83
    def __init__(self, compiler, element_type):
 
84
        super(UnsupportedCompilationError, self).__init__(
 
85
                    "Compiler %r can't render element of type %s" %
 
86
                                (compiler, element_type))
75
87
 
76
88
class IdentifierError(SQLAlchemyError):
77
89
    """Raised when a schema name is beyond the max character limit"""