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 compatability with other implementations * of the Gats library. */ public class KeyNotFoundException extends Exception { 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; } }