home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / ObjectTcl-1.1 / otcl / OtclError.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-29  |  10.8 KB  |  212 lines

  1. #ifndef OTCL_ERROR_H
  2. #define OTCL_ERROR_H
  3.  
  4. /*  _ __ ___ _
  5.  * | |\ /  /| |  $Id: OtclError.H,v 1.6 1995/06/16 13:04:04 deans Exp $
  6.  * | | /  / | |  Copyright (C) 1995 IXI Limited.
  7.  * |_|/__/_\|_|  IXI Limited, Cambridge, England.
  8.  *
  9.  * Component   : OtclError.H
  10.  *
  11.  * Author      : Dean Sheehan (deans@x.co.uk)
  12.  *  
  13.  * Description : Contains the #defines for all of the error strings
  14.  *
  15.  * License     :
  16.             Object Tcl License & Copyright
  17.             -----------------------------
  18.  
  19. IXI Object Tcl software, both binary and source (hereafter, Software) is copyrighted by IXI Limited (IXI), and ownership remains with IXI. 
  20.  
  21. IXI grants you (herafter, Licensee) a license to use the Software for academic, research and internal business purposes only, without a fee. Licensee may distribute the binary and source code (if required) to third parties provided that the copyright notice and this statement appears on all copies and that no charge is associated with such copies. 
  22.  
  23. Licensee may make derivative works. However, if Licensee distributes any derivative work based on or derived from the Software, then Licensee will (1) notify IXI regarding its distribution of the derivative work, and (2) clearly notify users that such derivative work is a modified version and not the original IXI Object Tcl distributed by IXI. IXI strongly recommends that Licensee provide IXI the right to incorporate such modifications into future releases of the Software under these license terms. 
  24.  
  25. Any Licensee wishing to make commercial use of the Software should contact IXI, to negotiate an appropriate license for such commercial use. Commercial use includes (1) integration of all or part of the source code into a product for sale or license by or on behalf of Licensee to third parties, or (2) distribution of the binary code or source code to third parties that need it to utilize a commercial product sold or licensed by or on behalf of Licensee. 
  26.  
  27. IXI MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. IXI SHALL NOT BE LIABLE FOR ANY DAMAGES WHATSOEVER SUFFERED BY THE USERS OF THIS SOFTWARE. 
  28.  
  29. Copyright (C) 1995, IXI Limited 
  30.  
  31. By using or copying this Software, Licensee agrees to abide by the copyright law and all other applicable laws of England and the U.S., including, but not limited to, export control laws, and the terms of this license. IXI shall have the right to terminate this license immediately by written notice upon Licensee's breach of, or non-compliance with, any of its terms. Licensee may be held legally responsible for any copyright infringement that is caused or encouraged by Licensee's failure to abide by the terms of this license. 
  32.  
  33. Comments and questions are welcome and can be sent to
  34. otcl@x.co.uk 
  35.  
  36. For more information on copyright and licensing issues, contact: 
  37. Legal Department, IXI Limited, Vision Park, Cambridge CB4 4ZR,
  38. ENGLAND. 
  39.  
  40.  *
  41.  */
  42.  
  43. // Error Messages
  44.  
  45. #define ARGS_CLASS_INTERFACE_ERR "wrong # args: should be \"otclInterface className ?-isA classList? body\""
  46.  
  47. #define ARGS_CLASS_IMPLEMENTATION_ERR "wrong # args: should be \"otclImplementation className body\""
  48.  
  49. #define ARGS_INSTANTIATE_ERR "wrong # args: should be \"otclNew className args\""
  50.  
  51. #define ARGS_DISCARD_ERR "wrong # args: should be \"otclDelete object\""
  52.  
  53. #define ARGS_METHOD_INTERFACE_ERR "wrong # args: should be \"method name args\""
  54.  
  55. #define ARGS_CLASS_METHOD_INTERFACE_ERR "wrong # args: should be \"classMethod name args\""
  56.  
  57. #define ARGS_CONSTRUCTOR_INTERFACE_ERR "wrong # args: should be \"constructor args\""
  58.  
  59. #define ARGS_METHOD_IMPLEMENTATION_ERR "wrong # args: should be \"method name args body\""
  60.  
  61. #define ARGS_CLASS_METHOD_IMPLEMENTATION_ERR "wrong # args: should be \"classMethod name args body\""
  62.  
  63. #define ARGS_CONSTRUCTOR_IMPLEMENTATION_ERR "wrong # args: should be \"constructor args parentConstructors body\""
  64.  
  65. #define ARGS_DESTRUCTOR_ERR "wrong # args: should be \"destructor body\""
  66.  
  67. #define ARGS_ATTRIBUTE_ERR "wrong # args: should be \"attribute name ?initial?\""
  68.  
  69. #define ARGS_CLASS_ATTRIBUTE_ERR "wrong # args: should be \"classAttribute name initial\""
  70.  
  71. #define ARGS_CLASS_METHOD_EXE_ERR "wrong # args: should be \"className method args\""
  72.  
  73. #define ARGS_METHOD_EXE_ERR "wrong # args: should be \"object method ?args?\""
  74.  
  75. #define ARGS_OTCL_ERR "wrong # args: should be \"otcl command ...\""
  76.  
  77. #define CLASS_ALREADY_INTERFACED_ERR "Class \"%s\" already declared."
  78.  
  79. #define CLASS_IMP_BEFORE_INT_ERR "Class \"%s\" interface has not been declared."
  80.  
  81. #define CLASS_UNDEFINED_ERR "Class \"%s\" is undefined."
  82.  
  83. #define METHOD_INTERFACE_DUPLICATED_ERR "Method \"%s\" duplicated in interface for class \"%s\"."
  84.  
  85. #define TOO_MANY_SUPERCLASSES_ERR "Too many superclasses specified in interface for class \"%s\". Maximum is %d."
  86.  
  87. #define SUPERCLASS_NOT_KNOWN_ERR "Class \"%s\" interface specified an unknown class, \"%s\", as one of its superclasses."
  88.  
  89. #define CONSTRUCTOR_NOT_INTERFACED_ERR "Constructor for class \"%s\" must be specified in interface."
  90.  
  91. #define SYNTAX_ERROR_IN_FORMAL_ARG_ERR "Syntax error in formal argument %d for method \"%s\". Formal argument specification is \"%s\"."
  92.  
  93. #define DUP_CONSTRUCTOR_ERR "Duplication of parent construction parameters for class \"%s\" from constructor of class \"%s\"."
  94.  
  95. #define DIFF_NO_OF_FORMAL_ARGS_IN_SPECS_ERR "Method \"%s\" has different number of arguments specified in its interface and implementation."
  96.  
  97. #define PUBLIC_IMP_DEFAULT_FORMAL_ARGS_ERR "Method \"%s\" has default values specified for formal arguments in its implementation. Can only specify defaults in interface if method is public."
  98.  
  99. #define BODY_ALREADY_SPECIFIED_ERR "Method \"%s\" implementated twice."
  100.  
  101. #define SYNTAX_ERROR_PARENT_CONSTRUCTOR_ERR "Syntax error in parent constructor \"%s\" in constructor of class \"%s\"."
  102.  
  103. #define PARENT_CONSTRUCTOR_UNKNOWN_CLASS_ERR "Constructor of class \"%s\" has specified an unknown class, \"%s\", in its parent construction specifier."
  104.  
  105. #define DESTRUCTOR_CANNOT_HAVE_ARGS_ERR "Destructor for class \"%s\" specifies formal arguments."
  106.  
  107. #define INST_ATTRIB_CLASH_ERR "Instance attribute \"%s\" in class \"%s\" clashes with another instance attribute of the same name."
  108.  
  109. #define CLASS_ATTRIB_CLASH_ERR "Class attribute \"%s\" in class \"%s\" clashes with another class attribute of the same name."
  110.  
  111. #define CLASS_ATTRIB_CLASH_INST_ERR "Class attribute \"%s\" in class \"%s\" clashes with an instance attribute of the same name."
  112.  
  113. #define INST_ATTRIB_CLASH_CLASS_ERR "Instance attribute \"%s\" in class \"%s\" clashes with a class attribute of the same name."
  114.  
  115. #define SUPERCLASS_DUPLICATION_ERR "Class \"%s\" is specified as a superclass of class \"%s\" twice."
  116.  
  117. #define COULDNT_MANAGE_OBJECT_ERR "Couldn't manage the new instance of class \"%s\"."
  118.  
  119. #define UNKNOWN_OBJECT_ERR "Object (%s) unknown."
  120.  
  121. #define FORMAL_ARG_HAS_NO_DEFAULT_ERR "Formal argument \"%s\" has no default value but not enough actual aguments."
  122.  
  123. #define BREAK_NOT_IN_LOOP_ERR "Break used outside of a loop."
  124.  
  125. #define CONTINUE_NOT_IN_LOOP_ERR "Continue used outside of a loop."
  126.  
  127. #define CALLING_INFO_ERR "\n    (method \"%.50s\" line %d)"
  128.  
  129. #define INST_METHOD_NOT_FOUND_ERR "Instance method \"%s\" not found for object of class \"%s\"."
  130.  
  131. #define PRIVATE_METHOD_NO_ACCESS_ERR "Method \"%s\" of class \"%s\" is private and cannot be accessed from outside class scope."
  132.  
  133. #define NO_CLASSES_IN_ISA_LIST_ERR "Class \"%s\" does not specify any classes in its -isA class list. Must specify at least one class with the -isA option."
  134.  
  135. #define CLASS_ALREADY_COMPLETED_ERR "Class \"%s\" has already been completely specified."
  136.  
  137. #define TOO_MANY_ARGS_TO_METHOD_ERR "Too many arguments have been supplied to \"%s\"."
  138.  
  139. #define CLASS_METHOD_NOT_FOUND_ERR "Class method \"%s\" not found for class \"%s\"."
  140.  
  141. #define ATTRIB_CANNOT_BE_CALLED_ERR "Attribute's cannot be called \"%s\"."
  142.  
  143. #define IMP_AS_INST_INT_AS_CLASS_ERR "Method \"%s\" specified as a class method in the interfaced but implemented as an instance method."
  144.  
  145. #define IMP_AS_CLASS_INT_AS_INST_ERR "Method \"%s\" specified as an instance method in the interface but implemented as a class method."
  146.  
  147. #define BAD_NAME_FOR_INST_METHOD_ERR "Cannot name an instance method \"%s\"."
  148.  
  149. #define BAD_NAME_FOR_CLASS_METHOD_ERR "Cannot name a class method \"%s\"."
  150.  
  151. #define INST_METHOD_NOT_COMPLETED_ERR "Instance method \"%s\" of class \"%s\" has not been completed. An interfaced method must be implemented."
  152.  
  153. #define CLASS_METHOD_NOT_COMPLETED_ERR "Class method \"%s\" of class \"%s\" has not been completed. An interfaced method must be implemented."
  154.  
  155. #define FORMAL_ARG_ATTRIB_CLASH_ERR "Method \"%s\" of class \"%s\" has a formal argument \"%s\" that classes with an attribute of the same name."
  156.  
  157. #define ARGS_CLASS_CMD_ERR "wrong # args: should be \"class method ?arg...?\"" 
  158.  
  159. #define ARGS_METHOD_ERR "Incorrect number of arguments for method \"%s\" of class \"%s\""
  160.  
  161. #define DUP_FORMAL_ARGUMENT_ERR "Duplicated formal argument \"%s\" in method \"%s\"."
  162.  
  163. #define NOT_A_BASE_CLASS_ERR "Class \"%s\" is not a superclass of class \"%s\"."
  164.  
  165. #define REDEFINED_DESTRUCTOR_ERR "Re-definition of destructor in class \"%s\"."
  166.  
  167. #define UNKNOWN_OTCL_COMMAND_ERR "Invalid command name \"%s\""
  168.  
  169. #define UNKNOWN_OSERVER_COMMAND_ERR "Invalid otcl oserver command \"%s\"."
  170.  
  171. #define ADDRESS_NO_COLON_ERR "Address \"%s\" contains no ':' port separator character."
  172.  
  173. #define ADDRESS_INVALID_PORT_ERR "Address \"%s\" contains an invalid port number."
  174.  
  175. #define COULDNT_SOCKET_ERR "TCP/IP socket could not be created because \"%s\"."
  176.  
  177. #define COULDNT_GET_HOSTNAME_ERR "Could get host addressing information for host \"%s\"."
  178.  
  179. #define COULDNT_CONNECT_ERR "Couldn't connect to process at address \"%s\" because \"%s\"."
  180.  
  181. #define ARGS_OSERVER_INIT_ERR "wrong # args: should be \"otcl oserver init ?port? ?maxPort?\""
  182.  
  183. #define CANNOT_BIND_TO_PORT_ERR "Cannot bind to TCP/IP port \"%d\"."
  184.  
  185. #define NO_AVAILABLE_PORTS_ERR "Couldn't find an available TCP/IP port to listen on in range %d to %d."
  186.  
  187. #define ARGS_REMOTE_OBJECT_ERR "wrong # args: should be \"otcl remoteObject address\""
  188.  
  189. #define NOT_REMOTE_OBJECT_ERR "Invalid remote object reference \"%s\"."
  190.  
  191. #define ARGS_OSERVER_PROCESS_ERR "wrongs # args: should be \"otcl oserver process ?script?\""
  192.  
  193. #define ARGS_REMOTE_CLASS_ERR "wrong # args: should be \"otcl remoteClass name address\""
  194.  
  195. #define REMOTE_CLASS_INTERNAL_CLASS_CLASH_ERR "Class \"%s\" is an internal class. Cannot redefine with a remote class."
  196.  
  197. #define OTCL_OSERVER_ALREADY_INIT_ERR "Otcl oserver has already been initialised."
  198.  
  199. #define OTCL_OSERVER_MIN_PORT_ERR "Otcl oserver min port range is less than 0."
  200.  
  201. #define OTCL_OSERVER_MAX_PORT_ERR "Otcl oserver max port < min port."
  202.  
  203. #define OTCL_OSERVER_MUST_INIT_FIRST_ERR "Otcl oserver must be initialised before requests can be processed."
  204.  
  205. #define OTCL_OSERVER_SELECT_ERR "Otcl oserver select error."
  206.  
  207. #define ARGS_OTCL_OSERVER_GET_ADDRESS_ERR "wrongs # args: should be \"otcl oserver getAddress\"."
  208.  
  209. #define OTCL_BAD_REMOTE_OBJECT_ERR "Bad remote object \"%s\"."
  210.  
  211. #endif  // OTCL_ERROR_H
  212.