13 lines
383 B
Dart
13 lines
383 B
Dart
part of nyxx;
|
|
|
|
/// Thrown when operation is unsupported due invalid or wrong shard being accessed.
|
|
class InvalidShardException implements Exception {
|
|
/// Custom error message specific to context of exception
|
|
final String message;
|
|
|
|
InvalidShardException._new(this.message);
|
|
|
|
@override
|
|
String toString() => "InvalidShardException: Unsupported shard operation: $message";
|
|
}
|