Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
337 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package rxgo | ||
|
||
// CancelledIteratorError is triggered when an iterator is canceled | ||
type CancelledIteratorError struct { | ||
} | ||
|
||
// EndOfIteratorError is triggered when an iterator is complete | ||
type EndOfIteratorError struct { | ||
} | ||
|
||
// IllegalInputError is triggered when the observable receives an illegal input | ||
type IllegalInputError struct { | ||
reason string | ||
} | ||
|
||
// IndexOutOfBoundError is triggered when the observable cannot access to the specified index | ||
type IndexOutOfBoundError struct { | ||
} | ||
|
||
// NoSuchElementError is triggered when an optional does not contain any element | ||
type NoSuchElementError struct { | ||
} | ||
|
||
// TimeoutError is triggered when a timeout occurs | ||
type TimeoutError struct { | ||
} | ||
|
||
func (e *CancelledIteratorError) Error() string { | ||
return "CancelledIteratorError" | ||
} | ||
|
||
func (e *EndOfIteratorError) Error() string { | ||
return "EndOfIteratorError" | ||
} | ||
|
||
func (e *IllegalInputError) Error() string { | ||
return e.reason | ||
} | ||
|
||
func (e *IndexOutOfBoundError) Error() string { | ||
return "IndexOutOfBoundError" | ||
} | ||
|
||
func (e *NoSuchElementError) Error() string { | ||
return "NoSuchElementError" | ||
} | ||
|
||
func (e *TimeoutError) Error() string { | ||
return "TimeoutError" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.