2020-06-16 23:12:06 +02:00
|
|
|
part of nyxx;
|
|
|
|
|
2020-06-27 11:59:22 +02:00
|
|
|
/// Thrown when embed doesnt meet requirements to be valid
|
2020-06-16 23:12:06 +02:00
|
|
|
class EmbedBuilderArgumentException 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
|
|
|
EmbedBuilderArgumentException._new(this.message);
|
2020-06-16 23:12:06 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
String toString() => "EmbedBuilderArgumentException: $message";
|
2021-02-09 01:37:01 +01:00
|
|
|
}
|