File: errorhandling.hc

package info (click to toggle)
craft 3.5-10
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,000 kB
  • ctags: 1,602
  • sloc: cpp: 3,794; makefile: 2,319; ansic: 857; sh: 385
file content (56 lines) | stat: -rw-r--r-- 1,775 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*======================================================================*/
/*= CHANGES AND UPDATES                                                =*/
/*======================================================================*/
/*= date   person file       subject                                   =*/
/*=--------------------------------------------------------------------=*/
/*=                                                                    =*/
/*======================================================================*/

#include "errorhandling.h"
#include "table.h"
#include "paramreader.h"

void errorstop (int  error_no,
                const char c_class [],
                const char msg     [])

  {errorstop (error_no, c_class, msg, "-", "-", "-");
  }

void errorstop (int  error_no,
                const char c_class [],
                const char msg     [],
                const char info    [])

  {errorstop (error_no, c_class, msg, info, "-", "-");
  }

void errorstop (int  error_no,
                const char c_class [],
                const char msg     [],
                const char info    [],
                const char param1  [])
    
  {errorstop (error_no, c_class, msg, info, param1, "-");
  }

void errorstop (int  error_no,
                const char c_class [],
                const char msg     [],
                const char info    [], 
                const char param1  [],
                const char param2  [])

  {printf              ("ERROR (%d) : %s : %s : %s : %s : %s\n",
                        error_no,
                        c_class,
                        msg,
	                info,
                        param1,
                        param2);
   close_table_handler (false);
   abort               ();
  }