Revision 1106 trunk/src/tools99/admb_messages.h

admb_messages.h (revision 1106)
2 2
 * $Id$
3 3
 *
4 4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
6
 * 
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 *
7 7
 * ADModelbuilder and associated libraries and documentations are
8 8
 * provided under the general terms of the "BSD" license.
9 9
 *
10 10
 * License:
11
 * 
11
 *
12 12
 * Redistribution and use in source and binary forms, with or without
13 13
 * modification, are permitted provided that the following conditions are
14 14
 * met:
15
 * 
15
 *
16 16
 * 1. Redistributions of source code must retain the above copyright
17 17
 * notice, this list of conditions and the following disclaimer.
18
 * 
18
 *
19 19
 * 2.  Redistributions in binary form must reproduce the above copyright
20 20
 * notice, this list of conditions and the following disclaimer in the
21 21
 * documentation and/or other materials provided with the distribution.
22
 * 
22
 *
23 23
 * 3.  Neither the name of the  University of California, Otter Research,
24 24
 * nor the ADMB Foundation nor the names of its contributors may be used
25 25
 * to endorse or promote products derived from this software without
26 26
 * specific prior written permission.
27
 * 
27
 *
28 28
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 29
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 30
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
......
73 73
  /**
74 74
   *
75 75
   */
76
  static 
76
  static
77 77
  void error(const adstring& message)
78 78
  {
79 79
    error(message, 1);
......
81 81
  /**
82 82
   *
83 83
   */
84
  static 
84
  static
85 85
  void error(const int error_code)
86 86
  {
87 87
    adstring message  = "Error: ";
......
101 101
  /**
102 102
   *
103 103
   */
104
  static 
104
  static
105 105
  void error(const adstring& message, const adstring& function_name, const int error_code)
106 106
  {
107 107
    adstring m = message;
......
114 114
  /**
115 115
   *
116 116
   */
117
  static 
117
  static
118 118
  void array_bounds_error(const adstring& message,
119 119
                          const adstring& function,
120
                          const int lower_bounds, 
120
                          const int lower_bounds,
121 121
                          const int upper_bounds,
122 122
                          const int index)
123 123
  {
......
145 145
                 + ", "
146 146
                 + str(upper_bounds)
147 147
                 + "] in \"" + function +  "\".\n"
148
                 + message + "\n"; 
148
                 + message + "\n";
149 149
    error(m, ARRAY_BOUNDS_ERROR);
150 150
  }
151 151
  /**
152 152
   *
153 153
   */
154
  static 
154
  static
155 155
  void error(const adstring& message, const int error_code)
156 156
  {
157 157
    cerr << message << '\n';

Also available in: Unified diff