Sha256: 6f5e4aa77c633470e53fe47384dbe52a8cd5c95401aa4139fc9bca49d1328412

Contents?: true

Size: 1.14 KB

Versions: 10

Compression:

Stored size: 1.14 KB

Contents

module Clubhouse
	class ClubhouseValidationError < StandardError
		def initialize(message)
			super('validation error: %s' % message)
		end
	end

	class ClubhouseAPIError < StandardError
		def initialize(response)
			super('api error (%d): %s' % [ response.code, response.to_s ])
		end
	end

	class NoSuchMember < ClubhouseValidationError
		def initialize(member)
			super('no such member (%s)' % member)
		end
	end

	class NoSuchFile < ClubhouseValidationError
		def initialize(file)
			super('no such file (%s)' % file)
		end
	end

	class NoSuchLinkedFile < ClubhouseValidationError
		def initialize(file)
			super('no such linked file (%s)' % file)
		end
	end

	class NoSuchTeam < ClubhouseValidationError
		def initialize(team)
			super('no such team (%s)' % team)
		end
	end

	class NoSuchProject < ClubhouseValidationError
		def initialize(project)
			super('no such project (%s)' % project)
		end
	end

	class NoSuchMilestone < ClubhouseValidationError
		def initialize(milestone)
			super('no such milestone (%s)' % milestone)
		end
	end

	class NoSuchEpic < ClubhouseValidationError
		def initialize(epic)
			super('no such epic (%s)' % epic)
		end
	end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
clubhouse2-1.0.11 lib/clubhouse2/exceptions.rb
clubhouse2-1.0.10 lib/clubhouse2/exceptions.rb
clubhouse2-1.0.8 lib/clubhouse2/exceptions.rb
clubhouse2-1.0.7 lib/clubhouse2/exceptions.rb
clubhouse2-1.0.6 lib/clubhouse2/exceptions.rb
clubhouse2-1.0.5 lib/clubhouse2/exceptions.rb
clubhouse2-1.0.4 lib/clubhouse2/exceptions.rb
clubhouse2-1.0.3 lib/clubhouse2/exceptions.rb
clubhouse2-0.0.2 lib/clubhouse2/exceptions.rb
clubhouse2-0.0.1 lib/clubhouse2/exceptions.rb