module Crystime::Errors

Overview

Group of module-level methods that return common Error objects for use in raise. This method of doing it is just a convenience at the moment; it may be changed to something else in the future.

Defined in:

crystime/errors.cr

Class Method Summary

Class Method Detail

def self.cant_materialize(text = nil) #

Error when VT can't be materialized due to some values being non-materializable.


[View source]
def self.exclusive_range_comparison(text = nil) #

Error when trying to compare dates whose start/end times are not part of range.


[View source]
def self.incorrect_input(text = nil) #

Error for incorrect input.


[View source]
def self.invalid_jd(text = nil) #

Error when unable to parse Julian Day Number.


[View source]
def self.invalid_yaml_input(text = nil) #

Error for incorrect YAML input.


[View source]
def self.no_comparator(a, b) #

Error for nonexistent comparator between types.


[View source]
def self.unsupported_comparison(text = nil) #

Error when trying to compare uncomparable types.


[View source]
def self.virtual_comparison(text = nil) #

Error when trying to compare partial VirtualTimes.


[View source]