lib/convenient_service/support/castable.rb in convenient_service-0.12.0 vs lib/convenient_service/support/castable.rb in convenient_service-0.13.0

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -require_relative "castable/errors" +require_relative "castable/exceptions" module ConvenientService module Support ## # TODO: Specs for options. @@ -32,10 +32,10 @@ abstract_method :cast def cast!(other, **options) casted = cast(other, **options) - raise Errors::FailedToCast.new(other: other, klass: self) unless casted + raise Exceptions::FailedToCast.new(other: other, klass: self) unless casted casted end end end