Sha256: 69fa30229acc3b49e163cbb3b5ea3230098053ff13428a4b0c7fe33dc8d5d595
Contents?: true
Size: 833 Bytes
Versions: 2
Compression:
Stored size: 833 Bytes
Contents
module Rips module Error MESSAGES = [ "RIPS ERROR (0). Unknown problem.", "RIPS ERROR (1). Invalid input file (try `rips file.rips`).", "RIPS ERROR (2). Doesn't exist file or directory.", "RIPS ERROR (3). Permission denied to read file.", "RIPS ERROR (4). In line %d: doesn't exist `%s` instruction in Instruction Set.", "RIPS ERROR (5). In line %d: for `%s` instruction wrong number of arguments (%d for %d).", "RIPS ERROR (6). In line %d: syntax error, %s.", "RIPS ERROR (7). In line %d: There is already a label called `%s`.", "RIPS ERROR (8). In line %d: Unknown syntax for label `%s` (try `labelname:`).", "RIPS ERROR (9). Invalid output file." ] def self.message (num, *args) puts MESSAGES[num] % args exit end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rips-0.1.1 | lib/rips/error.rb |
rips-0.1.0 | lib/rips/error.rb |