aboutsummaryrefslogtreecommitdiff
path: root/src/org/json/simple/parser/ParseException.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/json/simple/parser/ParseException.java')
-rw-r--r--src/org/json/simple/parser/ParseException.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/org/json/simple/parser/ParseException.java b/src/org/json/simple/parser/ParseException.java
index df1b1d1..6bd8d8c 100644
--- a/src/org/json/simple/parser/ParseException.java
+++ b/src/org/json/simple/parser/ParseException.java
@@ -75,13 +75,16 @@ public class ParseException extends Exception {
75 75
76 switch (this.errorType) { 76 switch (this.errorType) {
77 case ERROR_UNEXPECTED_CHAR: 77 case ERROR_UNEXPECTED_CHAR:
78 sb.append("Unexpected character (").append(this.unexpectedObject).append(") at position ").append(this.position).append("."); 78 sb.append("Unexpected character (").append(this.unexpectedObject).append(
79 ") at position ").append(this.position).append(".");
79 break; 80 break;
80 case ERROR_UNEXPECTED_TOKEN: 81 case ERROR_UNEXPECTED_TOKEN:
81 sb.append("Unexpected token ").append(this.unexpectedObject).append(" at position ").append(this.position).append("."); 82 sb.append("Unexpected token ").append(this.unexpectedObject).append(" at position ")
83 .append(this.position).append(".");
82 break; 84 break;
83 case ERROR_UNEXPECTED_EXCEPTION: 85 case ERROR_UNEXPECTED_EXCEPTION:
84 sb.append("Unexpected exception at position ").append(this.position).append(": ").append(this.unexpectedObject); 86 sb.append("Unexpected exception at position ").append(this.position).append(": ")
87 .append(this.unexpectedObject);
85 break; 88 break;
86 default: 89 default:
87 sb.append("Unkown error at position ").append(this.position).append("."); 90 sb.append("Unkown error at position ").append(this.position).append(".");