toValue method
Implementation
String toValue() {
switch (this) {
case Code.accessDeniedException:
return 'ACCESS_DENIED_EXCEPTION';
case Code.internalServerException:
return 'INTERNAL_SERVER_EXCEPTION';
case Code.malwareDetected:
return 'MALWARE_DETECTED';
case Code.resourceNotFoundException:
return 'RESOURCE_NOT_FOUND_EXCEPTION';
case Code.serviceQuotaExceededException:
return 'SERVICE_QUOTA_EXCEEDED_EXCEPTION';
case Code.validationException:
return 'VALIDATION_EXCEPTION';
case Code.malwareScanEncryptedFile:
return 'MALWARE_SCAN_ENCRYPTED_FILE';
}
}