txt: ## exception.md
  exception
  
  Combined from primary sources listed below.
  
  # [In Failure](#___top "go to top of document")[§](#(Failure)_method_exception "direct link")
  
  See primary documentation
  [in context](/type/Failure#method_exception)
  for **method exception**.
  
  ```raku
  method exception(Failure:D: --> Exception)
  ```
  
  Returns the [`Exception`](/type/Exception) object that the failure wraps.
  
  ```raku
  sub failer() { fail };
  my $failure = failer;
  my $ex = $failure.exception;
  put "$ex.^name(): $ex";
  # OUTPUT: «X::AdHoc: Failed␤»
  ```
  