OpenCores
URL https://opencores.org/ocsvn/soc_maker/soc_maker/trunk

Subversion Repositories soc_maker

[/] [soc_maker/] [trunk/] [lib/] [soc_maker/] [err.rb] - Diff between revs 7 and 8

Show entire file | Details | Blame | View Log

Rev 7 Rev 8
Line 62... Line 62...
        @field  = field
        @field  = field
       # p message
       # p message
        SOCMaker::logger.error( "StructureError raised: " + message + " (#{name},#{field})" )
        SOCMaker::logger.error( "StructureError raised: " + message + " (#{name},#{field})" )
      end
      end
      def to_s
      def to_s
        "->#{@name}:#{@field}"
        "#{super} -> #{@name}:#{@field}"
      end
      end
    end
    end
 
 
    class LibError < RuntimeError
    class LibError < RuntimeError
      attr :name
      attr :name
Line 74... Line 74...
        super message
        super message
        @name = requested
        @name = requested
        SOCMaker::logger.error( "LibError raised: " + message + " (#{requested})" )
        SOCMaker::logger.error( "LibError raised: " + message + " (#{requested})" )
      end
      end
      def to_s
      def to_s
        "->#{@name}"
        "#{super} -> #{@name}:#{@field}"
      end
      end
    end
    end
 
 
    class ProcessingError < RuntimeError
    class ProcessingError < RuntimeError
      def initialize( message )
      def initialize( message )
Line 95... Line 95...
        @name = name
        @name = name
        @field = field
        @field = field
        SOCMaker::logger.error( "ValueError raised: " + message + " (#{name},#{field})" )
        SOCMaker::logger.error( "ValueError raised: " + message + " (#{name},#{field})" )
      end
      end
      def to_s
      def to_s
        "->#{@name}:#{@field}"
        "#{super} -> #{@name}:#{@field}"
      end
      end
    end
    end
 
 
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.