Overview

Namespaces

  • None
  • Peg
    • Cli
      • Commands
    • Config
    • Custom
      • Command
        • Action
          • Generate
          • Parse
      • CommandLine
      • Config
      • Localization
      • Utilities
    • Lib
      • Definitions
        • Element
      • Generator
      • Lexers
      • Plugins
      • Signals
        • Data
          • Definitions
          • Lexers
        • Type
  • PHP

Classes

  • Action
  • Command
  • Error
  • Option
  • OptionType
  • Parser
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo
 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: }
PEG Api API documentation generated by ApiGen 2.8.0