APIdock / Ruby
/
Browse About
method

display_error_message

v2_2_9 - Show latest stable - Class: Rake::Application
display_error_message(ex)
public

Display the error message that caused the exception.

# File lib/rake/application.rb, line 196
    def display_error_message(ex) # :nodoc:
      trace "#{name} aborted!"
      display_exception_details(ex)
      trace "Tasks: #{ex.chain}" if has_chain?(ex)
      trace "(See full trace by running task with --trace)" unless
         options.backtrace
    end

Related methods

  • Instance methods
  • add_import
  • add_loader
  • collect_command_line_tasks
  • default_task_name
  • deprecate
  • display_error_message
  • display_exception_backtrace
  • display_exception_details
  • display_exception_message_details
  • display_prerequisites
  • display_tasks_and_comments
  • dynamic_width
  • dynamic_width_stty
  • dynamic_width_tput
  • exit_because_of_exception
  • find_rakefile_location
  • handle_options
  • has_cause?
  • have_rakefile
  • init
  • invoke_task
  • load_imports
  • load_rakefile
  • options
  • parse_task_string
  • print_rakefile_directory
  • rake_require
  • rakefile_location
  • raw_load_rakefile
  • run
  • run_with_threads
  • standard_exception_handling
  • standard_rake_options
  • system_dir
  • terminal_width
  • thread_pool
  • top_level
  • trace
  • truncate
  • truncate_output?
  • tty_output=
  • tty_output?
  • unix?
  • windows?
  • Class methods
  • new
  • Private methods
  • privateglob
  • privatehas_chain?
  • privateselect_tasks_to_show
  • privateselect_trace_output
  • privatesort_options
  • privatestandard_system_dir
APIdock API Documentation Browser

© 2026 APIdock