struct Athena::Dotenv::Exception::Format::Context
    
  - Athena::Dotenv::Exception::Format::Context
 - Struct
 - Value
 - Object
 
Overview
Stores contextual information related to an Athena::Dotenv::Exception::Format.
begin
  dotenv = Athena::Dotenv.new.parse "NAME=Jim\nFOO=BAR BAZ"
rescue ex : Athena::Dotenv::Exception::Format
  ctx = ex.context
  ctx.path        # => ".env"
  ctx.line_number # => 2
  ctx.details     # => "...NAME=Jim\nFOO=BAR BAZ...\n                       ^ line 2 offset 20"
end
  Defined in:
exception/format.crConstructors
Instance Method Summary
- 
        #details : String
        
          
Returns a details string that includes the markup before/after the error, along with what line number and offset the error occurred at.
 - 
        #line_number : Int32
        
          
Returns the line number of the format error.
 - 
        #path : String
        
          
Returns the path to the improperly formatted
.envfile. 
Constructor Detail
        
        def self.new(data : String, path : ::Path | String, line_number : Int32, offset : Int32)
        #
      
      
      Instance Method Detail
        
        def details : String
        #
      
      
        Returns a details string that includes the markup before/after the error, along with what line number and offset the error occurred at.