001// 002// Name 003// $RCSfile: KeyError.java,v $ 004// 005// Copyright 006// Confidential Property of Kabira Technologies, Inc. 007// Copyright 2009, 2010 by Kabira Technologies, Inc. 008// All rights reserved. 009// 010// History 011// $Revision: 1.1.2.2 $ $Date: 2010/05/11 23:50:41 $ 012// 013// Design Notes 014// Since none of the key exceptions represent "runtime" errors (e.g. key 015// not found), but instead programmatic errors (e.g. using an invalid 016// field), they inherit from java.lang.Error to avoid requiring catch 017// blocks. 018// 019package com.kabira.platform; 020 021/** 022 * Base class for all key exceptions. 023 */ 024public class KeyError extends java.lang.Error 025{ 026 /** 027 * Serialization version. 028 */ 029 public final static long serialVersionUID = 1L; 030 031 /** 032 * Creates a KeyError exception. 033 */ 034 public KeyError() { } 035 036 /** 037 * Creates a KeyError exception. 038 * @param message String to include in the exception. 039 */ 040 public KeyError(String message) 041 { 042 super(message); 043 } 044}