package PdhData;

public class PdhError 
{
  public static int UNDEFINED_ERROR = 0;
  public static int NULL_VALUE = -1;
  public static int NOT_FOUND = -2;
  public static int OUT_OF_RANGE = -3;
  
  public PdhError()
  {
  }
  
  public String Message(int err)
  {
    switch (err)
    {
      case 0: return "Undefined Error.";
      case -1: return "Null Value encountered when an object was required.";
      case -2: return "Not Found.";
      case -3: return "Out of Range - the number was too big or too small for the array.";
    }
    return "Unknown Error Code: " + err;
  }
}
