2020-06-16 23:12:06 +02:00
|
|
|
part of nyxx;
|
|
|
|
|
2020-06-27 11:59:22 +02:00
|
|
|
/// Thrown when operation is unsupported due invalid or wrong shard being accessed.
|
2020-06-16 23:12:06 +02:00
|
|
|
class InvalidShardException implements Exception {
|
2020-06-27 11:59:22 +02:00
|
|
|
/// Custom error message specific to context of exception
|
2020-06-16 23:12:06 +02:00
|
|
|
final String message;
|
2020-06-27 11:59:22 +02:00
|
|
|
|
|
|
|
InvalidShardException._new(this.message);
|
2020-06-16 23:12:06 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
String toString() => "InvalidShardException: Unsupported shard operation: $message";
|
2021-02-09 01:37:01 +01:00
|
|
|
}
|