123456789101112131415161718192021222324252627282930313233 |
- # Copyright 2024 Henrique Paone
- #
- # This file is part of Tanki.
- #
- # Tanki is free software: you can redistribute it and/or modify it under the
- # terms of the GNU General Public License as published by the Free Software
- # Foundation, either version 3 of the License, or (at your option) any later
- # version.
- #
- # Tanki is distributed in the hope that it will be useful, but WITHOUT ANY
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- # PARTICULAR PURPOSE. See the GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License along with
- # Tanki. If not, see <https://www.gnu.org/licenses/>.
- module Error
- Err_msgs = {
- parse: "Error parsing card's contents %{file}",
- t_and_r: '-t and -r not allowed together',
- missing_deck: 'No decks specified for -d',
- missing_card: 'No cards specified for -c' ,
- no_cards: 'No cards found for passed arguments',
- bad_date: 'Bad LastReview value in card %{file}, run with -c to fix',
- bad_stage: 'Bad Stage value in card %{file}, run with -c to fix',
- unknown_arg: 'Unrecgonized argument \'%{arg}\''
- }
-
- class ParsingError < StandardError ; end
- class BadArgument < StandardError ; end
- class BadValue < StandardError ; end
- end
|