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

13 lines
351 B
Dart

part of nyxx;
/// Thrown when embed doesnt meet requirements to be valid
class EmbedBuilderArgumentException implements Exception {
/// Custom error message specific to context of exception
final String message;
EmbedBuilderArgumentException._new(this.message);
@override
String toString() => "EmbedBuilderArgumentException: $message";
}