1: <?php
2: /**
3: * @author Jefferson González
4: * @license MIT
5: * @link http://github.com/peg-org/peg-custom Source code.
6: */
7:
8: namespace Peg\Custom\CommandLine;
9:
10: /**
11: * Functions to throw error messages.
12: */
13: class Error
14: {
15:
16: /**
17: * Displays a message and exits the application with error status code.
18: * @param string $message The message to display before exiting the application.
19: */
20: public static function Show($message)
21: {
22: fwrite(STDERR, t("Error:") . " " . $message . "\n");
23: exit(1);
24: }
25:
26: }