1 package com.exsoinn.util.epf;
2
3
4
5
6 public class UnexpectedArrayNodeException extends Exception {
7 private final SearchPath searchPath;
8 private final String node;
9 private final Context context;
10
11 public UnexpectedArrayNodeException(SearchPath pSearchPath, String pNode, Context pCtx) {
12 super("Found an array element, yet the search path did not tell me"
13 + " to expect an array element here. The node of search path being processed when error " +
14 "occurred was " + pNode + ", and the element found was " + pCtx.stringRepresentation()
15 + ". The search path was " + pSearchPath.toString());
16 searchPath = pSearchPath;
17 node = pNode;
18 context = pCtx;
19 }
20
21
22
23
24 public SearchPath getSearchPath() {
25 return searchPath;
26 }
27
28 public String getNode() {
29 return node;
30 }
31
32 public Context getContext() {
33 return context;
34 }
35 }