Skip to content

Commit

Permalink
Add ComponentError class, not implemented yet
Browse files Browse the repository at this point in the history
part of #1
  • Loading branch information
taylorthurlow committed May 9, 2018
1 parent 96ca761 commit 2fe6741
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/panda_motd/component_error.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class ComponentError
def initialize(component, message)
@component = component
@message = message
end

def to_s
return "#{component.name} error: #{@message}"
end
end

0 comments on commit 2fe6741

Please sign in to comment.