#include "Error.h"

Errer Errur[ERRORDEPTH];
int Error_StackTop = 0;
char *errtbl[MAXERROR+1] = {
  "Attempt to register a domain name which is already registered",
  "Attempt to register a domain when the maximum number is already registered",
  "The domain name of the address has never been registered",
  "A null pointer was passed to the routine",
  "An invalid address was passed in",
  "The maximum number of addresses available has been reached",
  "The file descriptor number passed was larger than that supported",
  "Select returned an unexpected error; the call was not completed.",
  "Connect returned due to a timeout rather than an incoming packet.",
  "A socket is ready for reading for which no packeter was registered.",
  "Select said there was something to do, but there wasn't.",
  "There are already the maximum number of allowable types.",
  "An unknown keyword was encountered.",
  "Stream open returned NULL.",
  "Stream read returned NULL.",
  "Tree already climbed.",
  "Tree already descended here.",
  "No more leaves here.",
  "No data of the specified type was available.",
  "A new data field of the specified type was created.",
  "There was no block to create the new data field under.",
  "Failure to allocate memory",
  "The address string was ill-formed.",
  "The hostname given was not resolvable.",
  "The hostname given did not match the domain it was paired with.",
  "Operation generated a new address.",
  "Service name requested for address was unknown.",
  "The connection requested to be opened already was.",
  "Socket creation failed.",
  "The address could not be bound to a socket.",
  "The operation on the address failed because it was not open.",
  "The destination address was insufficiently specified.",
  "Sendto returned an unexpected error.",
  "Sendto only send part of the packet.",
  "Broadcast is not supported.",
  "FIONREAD returned an unexpected error.",
  "recvfrom returned an unexpected error.",
  "The whole packet as expected from FIONREAD was not read.",
  "The socket was expected to have data on it but did not.",
  "The protocol claimed the packet was longer than what was received.",
  "The packet received was too short to contain the requested item.",
  "The protocol of the packet did not match.",
  "There was a license block without any info. This can't happen. Heh.",
  "A license was created without any pools.",
  "This packet called for the closing of its connection.",
  "The port number specified is out of range.",
  "A port number was expected, but not found.",
  "The port number specified was already initialized.",
  "The connection number specified is out of range.",
  "A connection number was expected, but not found.",
  "The connection number specified was already initialized.",
  "A port specified in the connection was not defined.",
  "No connections had been specified when classification occurred.",
  "Classification of an undefined connection was attempted.",
  "The requested place in the parse tree could not be found.",
  "A user supplied string had zero length.",
  "Program was set without corresponding vendor.",
  "Version was set without corresponding vendor.",
  "Number of licenses was set without corresponding pool.",
  "A number of licenses was expected, but not found.",
  "A new context was created.",
  "The context requested did not exist.",
  "Couldn't open database.",
  "Error number out of range"
};
