blob: 46193dcbf9a94b7e7b68197af16748481a0ba61b [file] [log] [blame]
package org.apache.tapestry5.json.exceptions;
import org.apache.tapestry5.json.JSONType;
public class JSONValueNotFoundException extends RuntimeException
{
private static final long serialVersionUID = -8709125433506778675L;
private final String location;
private final JSONType requiredType;
public JSONValueNotFoundException(String location, JSONType requiredType)
{
super(location + " is not found. Required: " + requiredType.name());
this.location = location;
this.requiredType = requiredType;
}
public String getLocation()
{
return this.location;
}
public JSONType getRequiredType()
{
return this.requiredType;
}
}