mediawiki-extensions-Visual.../modules/ve
Trevor Parscal b4de3ead08 Throw ve.Error instead of string literals
Throwing strings is bad because it doesn't include a lot of important
information that an error object does, such as a stack trace or where
the error was actually thrown from.

ve.Error inherits directly from Error. In the future we may create
more specific subclasses and/or do custom stuff.

Some interesting reading on the subject:
* http://www.devthought.com/2011/12/22/a-string-is-not-an-error/

Change-Id: Ib7c568a1dcb98abac44c6c146e84dde5315b2826
2012-08-08 06:19:00 +02:00
..
ce Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
dm Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
init Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
test Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ui Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ve.BranchNode.js Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ve.debug.js Removed some whitespace 2012-07-19 14:25:16 -07:00
ve.Document.js Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ve.Error.js Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ve.EventEmitter.js Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ve.Factory.js Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ve.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00
ve.LeafNode.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00
ve.Node.js Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ve.Position.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00
ve.Range.js Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ve.Surface.js Cleanup - all jshint conditions are now met 2012-08-03 18:56:04 -07:00