mediawiki-extensions-Visual.../modules/ve/test/dm
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
..
nodes Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.dm.BranchNode.test.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00
ve.dm.Converter.test.js Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.dm.Document.test.js Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ve.dm.DocumentSynchronizer.test.js Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.dm.example.js Kill all but one of the Parsoid compat hacks, we don't need them any more 2012-08-06 13:56:40 -07:00
ve.dm.LeafNode.test.js Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.dm.Node.test.js Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ve.dm.NodeFactory.test.js Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ve.dm.Surface.test.js Clean up: Single quotes 2012-08-07 07:02:01 +02:00
ve.dm.Transaction.test.js Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00
ve.dm.TransactionProcessor.test.js Throw ve.Error instead of string literals 2012-08-08 06:19:00 +02:00