toMessage method
override
Implementation
@override
String toMessage() {
switch (code) {
case UpdateUserCallCoverErrorCode.invalidCropCoordinates:
return 'err_invalid_crop_coordinates'.l10n;
case UpdateUserCallCoverErrorCode.invalidCropPoints:
return 'err_invalid_crop_points'.l10n;
case UpdateUserCallCoverErrorCode.malformed:
return 'err_uploaded_file_malformed'.l10n;
case UpdateUserCallCoverErrorCode.unsupportedFormat:
return 'err_unsupported_format'.l10n;
case UpdateUserCallCoverErrorCode.invalidSize:
return 'err_size_too_big'.l10n;
case UpdateUserCallCoverErrorCode.invalidDimensions:
return 'err_dimensions_too_big'.l10n;
case UpdateUserCallCoverErrorCode.artemisUnknown:
return 'err_unknown'.l10n;
}
}