Skip to content

Commit 13d531e

Browse files
committedMay 19, 2015
Update README.md
1 parent 26fd4c5 commit 13d531e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
 

‎README.md

+30
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,24 @@ Common error classes and utility functions
2121
* [ArgumentError](#argument)
2222
* [ArgumentNullError](#argumentnull)
2323
* [AuthenticationRequiredError](#authrequired)
24+
* [ConnectionError](#connection)
25+
* [DataError](#data)
26+
* [MemcacedError](#memcached)
27+
* [MongoDBError](#mongodb)
28+
* [RedisError](#redis)
29+
* [RollbackError](#rollback)
30+
* [SQLError](#sql)
31+
* [TransactionError](#transaction)
2432
* [Error](#error)
2533
* [HttpStatusError](#httpstatus)
34+
* [InvalidOperationError](#invalidoperation)
2635
* [IOError](#io)
2736
* [DirectoryNotFoundError](#directorynotfound)
2837
* [DriveNotFoundError](#drivenotfound)
2938
* [EndOfStreamError](#endofstream)
3039
* [FileLoadError](#fileload)
3140
* [FileNotFoundError](#filenotfound)
41+
* [SocketError](#socket)
3242
* [NotFoundError](#notfound)
3343
* [NotImplementedError](#notimplemented)
3444
* [NotPermittedError](#notpermitted)
@@ -38,6 +48,7 @@ Common error classes and utility functions
3848
* [ReferenceError](#reference)
3949
* [StackOverflowError](#stackoverflow)
4050
* [SyntaxError](#syntax)
51+
* [TimeoutError](#timeout)
4152
* [TypeError](#type)
4253
* [URIError](#uri)
4354
* [ValidationError](#validation)
@@ -113,6 +124,25 @@ throw new errors.ArgumentNullError('username', err);
113124

114125
---------------------------------------
115126

127+
<a name="connection" />
128+
### ConnectionError
129+
130+
Applicable when an error occurs on a connection.
131+
132+
new ConnectionError(message[, inner_error])
133+
134+
__Arguments__
135+
136+
* `message` - any message
137+
* `inner_error` - the Error instance that caused the current error. Stack trace will be appended.
138+
139+
```js
140+
// Example
141+
throw new errors.ConnectionError('database connection no longer available', err);
142+
```
143+
144+
---------------------------------------
145+
116146
<a name="authrequired" />
117147
### AuthenticationRequiredError
118148

0 commit comments

Comments
 (0)
Please sign in to comment.