nyxx/nyxx/lib/src/internal/exceptions/InvalidShardException.dart

13 lines
383 B
Dart
Raw Normal View History

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";
2021-02-09 01:37:01 +01:00
}