NextDB.net

Class net.nextdb.Error

Object
   |
   +--net.nextdb.Error

class net.nextdb.Error


All of the user defined callbacks are passed a last parameter which is either an instance of this Error class with a details message about the error. If there is no error, then the last param is undefined

error code table:

code Message Additional Fields Type Context
110 incorrect security CAPTCHA word NONE SecurityException Insert
120 The row could not be inserted without violating data integrity
or constraints. <Context-specific message>

causedBy IntegrityConstraintViolationException Insert
130 <Context-specific message>
causedBy
DataFormatException

Insert, Update, Query
210 0 rows deleted
NONE
Delete
Delete
220 Row is not deletable.
NONE
SecurityException

Delete
310
Query named '<query-name>' uses ORDER BY but query
has been executed without setting mandatory startAfterValue.
NONE MissingQueryParameterException
Query
320
missing parameter '<paramName>'

causedBy MissingQueryParameterException Query
410 Could not relate rows without violating one-to-one cardinality
on relationship '<relationship-name>'.
causedBy IntegrityConstraintViolationException
Relate Rows
510 Row is not updatable.
NONE SecurityException
Update
530 Update failed.
NONE ConcurrentModificationException
Update

Defined in api.docs.js


Field Summary
 Object causedBy
          An additional field, named "causedBy" will be populated when the error applies to a specific column, parameter, or relationship.
 Object code
          a numeric error code representing a classification of error type.
 Object exceptionClass
          
 Object message
          a context-specific error message string
 
Constructor Summary
net.nextdb.Error()
           
 
Method Summary
 Object getMessage()
          
 Object toString()
           print whole error -- code : message : causedBy

Field Detail

causedBy

Object causedBy

code

Object code

exceptionClass

Object exceptionClass

message

Object message

Constructor Detail

net.nextdb.Error

net.nextdb.Error()

Method Detail

getMessage

Object getMessage()

toString

Object toString()

NextDB.net

Documentation generated by JSDoc on Mon Mar 29 20:15:50 2010