toMessage method
override
Implementation
@override
String toMessage() {
switch (code) {
case RegisterPushDeviceErrorCode.occupied:
return toString();
case RegisterPushDeviceErrorCode.artemisUnknown:
return 'err_unknown'.l10n;
case RegisterPushDeviceErrorCode.unknownDeviceToken:
case RegisterPushDeviceErrorCode.unavailable:
return toString();
case null:
return 'err_unknown'.l10n;
}
}