@@ -0,0 +1,690 @@
+package com.itranswarp.jsonstream;%0A%0A/**%0A * ValidateException represent a validation error.%0A * %0A * @author Michael Liao%0A */%0Apublic class ValidateException extends RuntimeException %7B%0A%0A%09private final String code;%0A%09private final String path;%0A%0A%09public ValidateException(String code, String path) %7B%0A%09%09super(%22Validation failed: %22 + path + %22, not satisfied by: %22 + code);%0A%09%09this.code = code;%0A%09%09this.path = path;%0A%09%7D%0A%0A%09public ValidateException(String code, String path, Throwable cause) %7B%0A%09%09super(%22Validation failed: %22 + path + %22, not satisfied by: %22 + code, cause);%0A%09%09this.code = code;%0A%09%09this.path = path;%0A%09%7D%0A%0A%09String getCode() %7B%0A%09%09return this.code;%0A%09%7D%0A%0A%09String getPath() %7B%0A%09%09return this.path;%0A%09%7D%0A%7D%0A

add ValidationException