2016-07-29 18:10:43 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
|
*/
|
|
|
|
|
|
2017-01-10 13:14:41 +00:00
|
|
|
import {ParseError, ParseErrorLevel, ParseSourceSpan} from '../parse_util';
|
2016-07-29 18:10:43 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* An i18n error.
|
|
|
|
|
*/
|
|
|
|
|
export class I18nError extends ParseError {
|
|
|
|
|
constructor(span: ParseSourceSpan, msg: string) { super(span, msg); }
|
|
|
|
|
}
|
2017-01-10 13:14:41 +00:00
|
|
|
|
|
|
|
|
export class I18nWarning extends ParseError {
|
|
|
|
|
constructor(span: ParseSourceSpan, msg: string) { super(span, msg, ParseErrorLevel.WARNING); }
|
|
|
|
|
}
|