Sha256: 3bd27fcf465f6a7154520c3dfcfb0aeec6c2d9457fc2f3ce8d4f99aa104f8248

Contents?: true

Size: 1.14 KB

Versions: 19

Compression:

Stored size: 1.14 KB

Contents

=begin
  Copyright (C) 2005 Jeff Rose

  This library is free software; you can redistribute it and/or modify it
  under the same terms as the ruby language itself, see the file COPYING for
  details.
=end
require 'logger'

module Icalendar #:nodoc:

  # A simple error class to differentiate iCalendar library exceptions
  # from ruby language exceptions or others.
  class IcalendarError < StandardError #:nodoc:
  end

  # Exception used when the library encounters a bogus calendar component.
  class UnknownComponentClass < IcalendarError
  end

  # Exception used when the library encounters a bogus property type.
  class UnknownPropertyMethod< IcalendarError
  end

  # Exception used when the library encounters a bogus property value.
  class InvalidPropertyValue < IcalendarError
  end

  # This class serves as the base class for just about everything in
  # the library so that the logging system can be configured in one place.
  class Base
    @@logger = Logger.new(STDERR)
    @@logger.level = Logger::FATAL

    def self.debug
      @@logger.level = Logger::DEBUG
    end

    def self.quiet
      @@logger.level = Logger::FATAL
    end
  end
end

Version data entries

19 entries across 19 versions & 4 rubygems

Version Path
curzonj-icalendar-1.0.2.1 lib/icalendar/base.rb
curzonj-icalendar-1.0.2 lib/icalendar/base.rb
curzonj-icalendar-1.1.0.2 lib/icalendar/base.rb
paulsm-icalendar-1.1.0.4 lib/icalendar/base.rb
sdague-icalendar-1.0.2.1 lib/icalendar/base.rb
sdague-icalendar-1.0.2.2 lib/icalendar/base.rb
sdague-icalendar-1.0.2.3 lib/icalendar/base.rb
sdague-icalendar-1.0.2.4 lib/icalendar/base.rb
sdague-icalendar-1.1.0.1 lib/icalendar/base.rb
sdague-icalendar-1.1.0.2 lib/icalendar/base.rb
sdague-icalendar-1.1.0.3 lib/icalendar/base.rb
sdague-icalendar-1.1.0 lib/icalendar/base.rb
icalendar-1.1.1 lib/icalendar/base.rb
icalendar-0.98 lib/icalendar/base.rb
icalendar-1.1.0 lib/icalendar/base.rb
icalendar-1.0 lib/icalendar/base.rb
icalendar-0.97 lib/icalendar/base.rb
icalendar-1.0.2 lib/icalendar/base.rb
icalendar-1.0.1 lib/icalendar/base.rb