Lines Matching refs:error

42  *  A base class for error logs. Reports errors and warnings, and
43 * keeps track of error numbers and positions.
93 /** Report an error, unless another error was already reported at same
95 * @param key The key for the localized error message.
96 * @param args Fields of the error message.
98 public void error(String key, Object ... args) {
99 error(diags.errorKey(key, args));
102 /** Report an error, unless another error was already reported at same
104 * @param errorKey The key for the localized error message.
106 public void error(Error errorKey) {
107 report(diags.error(null, source, null, errorKey));
110 /** Report an error, unless another error was already reported at same
112 * @param pos The source position at which to report the error.
113 * @param key The key for the localized error message.
114 * @param args Fields of the error message.
116 public void error(DiagnosticPosition pos, String key, Object... args) {
117 error(pos, diags.errorKey(key, args));
120 /** Report an error, unless another error was already reported at same
122 * @param pos The source position at which to report the error.
123 * @param errorKey The key for the localized error message.
125 public void error(DiagnosticPosition pos, Error errorKey) {
126 report(diags.error(null, source, pos, errorKey));
129 /** Report an error, unless another error was already reported at same
132 * @param pos The source position at which to report the error.
133 * @param key The key for the localized error message.
134 * @param args Fields of the error message.
136 public void error(DiagnosticFlag flag, DiagnosticPosition pos, String key, Object ... args) {
137 error(flag, pos, diags.errorKey(key, args));
140 /** Report an error, unless another error was already reported at same
143 * @param pos The source position at which to report the error.
144 * @param errorKey The key for the localized error message.
146 public void error(DiagnosticFlag flag, DiagnosticPosition pos, Error errorKey) {
147 report(diags.error(flag, source, pos, errorKey));
150 /** Report an error, unless another error was already reported at same
152 * @param pos The source position at which to report the error.
153 * @param key The key for the localized error message.
154 * @param args Fields of the error message.
156 public void error(int pos, String key, Object ... args) {
157 error(pos, diags.errorKey(key, args));
160 /** Report an error, unless another error was already reported at same
162 * @param pos The source position at which to report the error.
163 * @param errorKey The key for the localized error message.
165 public void error(int pos, Error errorKey) {
166 report(diags.error(null, source, wrap(pos), errorKey));
169 /** Report an error, unless another error was already reported at same
172 * @param pos The source position at which to report the error.
173 * @param key The key for the localized error message.
174 * @param args Fields of the error message.
176 public void error(DiagnosticFlag flag, int pos, String key, Object ... args) {
177 error(flag, pos, diags.errorKey(key, args));
180 /** Report an error, unless another error was already reported at same
183 * @param pos The source position at which to report the error.
184 * @param errorKey The key for the localized error message.
186 public void error(DiagnosticFlag flag, int pos, Error errorKey) {
187 report(diags.error(flag, source, wrap(pos), errorKey));
323 * @param args Fields of the notint an error or warning message: