Package web2py :: Package gluon :: Module restricted :: Class RestrictedError

[hide private]
[frames] | no frames]

# Class RestrictedError

source code

                  object --+
                           |
    exceptions.BaseException --+
                               |
            exceptions.Exception --+
                                   |
                                  RestrictedError

class used to wrap an exception that occurs in the restricted environment below. the traceback is used to log the exception and generate a ticket.

Instance Methods | [hide private]

__init__(self, layer=`'````'`, code=`'````'`, output=`'````'`, environment=global_settings.applications_parent) layer here is some description of where in the system the exception occurred. | source code

log(self, request) logs the exception. | source code

load(self, request, app, ticket_id) loads a logged exception. | source code

__str__(self) str(x) | source code

Inherited from `exceptions.Exception`: `__new__` Inherited from `exceptions.BaseException`: `__delattr__`, `__getattribute__`, `__getitem__`, `__getslice__`, `__reduce__`, `__repr__`, `__setattr__`, `__setstate__` Inherited from `object`: `__hash__`, `__reduce_ex__`

Properties | [hide private]

Inherited from `exceptions.BaseException`: `args`, `message` Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, layer=`'````'`, code=`'````'`, output=`'````'`, environment=global_settings.applications_parent)
(Constructor)

source code

layer here is some description of where in the system the exception occurred.

Overrides: exceptions.Exception.__init__

### __str__(self)
(Informal representation operator)

source code

str(x)

Overrides: exceptions.BaseException.__str__
  (inherited documentation)