Package lib :: Package cuckoo :: Package core :: Module database :: Class Error
[hide private]
[frames] | no frames]

Class Error

source code

object --+    
         |    
      Base --+
             |
            Error

Analysis errors.

Instance Methods [hide private]
 
to_dict(self)
Converts object to dict.
source code
 
to_json(self)
Converts object to JSON.
source code
 
__init__(self, message, task_id)
A simple constructor that allows initialization from kwargs.
source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __tablename__ = 'errors'
  id = Column(Integer(), primary_key= True)
  message = Column(String(255), nullable= False)
  task_id = Column(Integer, ForeignKey("tasks.id"), nullable= Fa...
  __mapper__ = <Mapper at 0x7f86b8157050; Error>
  __table__ = Table('errors', MetaData(bind=None), Column('id', ...
  _sa_class_manager = <ClassManager of <class 'lib.cuckoo.core.d...

Inherited from Base: metadata

Inherited from Base (private): _decl_class_registry

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

to_dict(self)

source code 

Converts object to dict.

Returns:
dict

to_json(self)

source code 

Converts object to JSON.

Returns:
JSON data

__init__(self, message, task_id)
(Constructor)

source code 

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in ``kwargs``.

Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Class Variable Details [hide private]

task_id

Value:
Column(Integer, ForeignKey("tasks.id"), nullable= False)

__table__

Value:
Table('errors', MetaData(bind=None), Column('id', Integer(), table=<er\
rors>, primary_key=True, nullable=False), Column('message', String(len\
gth=255), table=<errors>, nullable=False), Column('task_id', Integer()\
, ForeignKey('tasks.id'), table=<errors>, nullable=False), schema=None\
)

_sa_class_manager

Value:
<ClassManager of <class 'lib.cuckoo.core.database.Error'> at 7f86b8156\
3c8>