stackTrace property
The stack trace at the point where this exception was first thrown.
Might be unset if nyxx_commands has not yet handled this exception. The stackTrace = ...
setter should not be called if this is already non-null, so you should avoid calling it unless
you are creating exceptions yourself.
Implementation
StackTrace? get stackTrace => _stackTrace;
Implementation
set stackTrace(StackTrace? stackTrace) {
if (this.stackTrace != null) {
// Use a native error instead of one from nyxx_commands that could potentially lead to an
// infinite error loop
throw StateError('Cannot set CommandsException.stackTrace if it is already set');
}
_stackTrace = stackTrace;
}