blob: ddcde1899e56f8bc9b9b3cfab20a3bbde2b353bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*
* Copyright (C) 2007-2012 Xagasoft, All rights reserved.
*
* This file is part of the libgats library and is released under the
* terms of the license contained in the file LICENSE.
*/
package com.xagasoft.gats;
/**
* This exception is thrown by the container classes in Gats when one of the
* casting helper functions is used to extract a value. In those cases,
* in java we could still potentially return a null (at least if we were
* using object types). This has a couple of advantages when working with
* non-object types, and maintains compatibility with other implementations
* of the Gats library.
*/
public class KeyNotFoundException extends Exception
{
private static final long serialVersionUID = -1919827309987785614L;
private Object oSrc = null;
private String sKey = null;
public KeyNotFoundException( Object oSrc, String sKey )
{
this.oSrc = oSrc;
this.sKey = sKey;
}
public Object getSource()
{
return oSrc;
}
public String getKey()
{
return sKey;
}
}
|