nyxx/nyxx/lib/src/internal/exceptions/InvalidShardException.dart
2021-03-29 21:18:20 +02:00

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";
}