|
Revision 328, 0.6 kB
(checked in by gethema..@gmail.com, 3 months ago)
|
update trunk for 1.1 release
|
| Line | |
|---|
| 1 |
# Exception class for BackgrounDRb connection errors |
|---|
| 2 |
module BackgrounDRb |
|---|
| 3 |
# raised when connection to a particular server failed |
|---|
| 4 |
class BdrbConnError < RuntimeError |
|---|
| 5 |
attr_accessor :message |
|---|
| 6 |
def initialize(message) |
|---|
| 7 |
@message = message |
|---|
| 8 |
end |
|---|
| 9 |
end |
|---|
| 10 |
# raised when connection to all of the available servers failed |
|---|
| 11 |
class NoServerAvailable < RuntimeError |
|---|
| 12 |
attr_accessor :message |
|---|
| 13 |
def initialize(message) |
|---|
| 14 |
@message = message |
|---|
| 15 |
end |
|---|
| 16 |
end |
|---|
| 17 |
|
|---|
| 18 |
# raised, when said task was submitted without a job key, whereas |
|---|
| 19 |
# nature of the task requires a job key |
|---|
| 20 |
class NoJobKey < RuntimeError; end |
|---|
| 21 |
end |
|---|