Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/alicebot/server/core/NoSuchPredicateException.java


1   // Decompiled by Jad v1.5.8c. Copyright 2001 Pavel Kouznetsov.
2   // Jad home page: http://www.geocities.com/kpdus/jad.html
3   // Decompiler options: packimports(3) 
4   
5   package org.alicebot.server.core;
6   
7   
8   public class NoSuchPredicateException extends Exception
9   {
10  
11      public NoSuchPredicateException(String s)
12      {
13          name = s;
14      }
15  
16      public NoSuchPredicateException(String s, int i)
17      {
18          name = s;
19          index = i;
20      }
21  
22      public String getMessage()
23      {
24          if(index != -1)
25              return "No predicate with name \"" + name + "\" with a value at index " + index + ".";
26          else
27              return "No predicate with name \"" + name + "\".";
28      }
29  
30      private static String name;
31      private static int index = -1;
32  
33  }