浏览代码

Removing redundant exception type.

Samuel Carlsson 9 年之前
父节点
当前提交
aaee8e179d
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      examples/js/loaders/OBJLoader.js

+ 1 - 6
examples/js/loaders/OBJLoader.js

@@ -2,11 +2,6 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-THREE.ParseException = function(message) {
-   this.message = message;
-   this.name = "ParseException";
-}
-
 THREE.OBJLoader = function ( manager ) {
 
 	this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
@@ -339,7 +334,7 @@ THREE.OBJLoader.prototype = {
 
 			} else {
 
-                throw new THREE.ParseException("Unexpected line: " + line);
+                throw new Error("Unexpected line: " + line);
 
 			}