class UCF::MalformedUCFError

This exception is raised when a bad UCF is detected.

Public Class Methods

new(reason = "") click to toggle source

Create a new MalformedUCFError with an optional reason for why the UCF document is malformed.

Calls superclass method
# File lib/ucf/exceptions.rb, line 48
def initialize(reason = nil)
  if reason.nil?
    super("Malformed UCF Document.")
  else
    super("Malformed UCF Document: #{reason}")
  end
end