package com.study.course_registration.failure; import com.study.course_registration.enums.RegistrationErrorCode; public final class RetryableInfrastructureFailure extends ApplicationFailure { private RetryableInfrastructureFailure(String message, Throwable cause) { super(RegistrationErrorCode.LOCK_TIMEOUT, message, cause); } public static RetryableInfrastructureFailure lockTimeout(Throwable cause) { return new RetryableInfrastructureFailure( "다른 요청이 처리 중입니다. 잠시 후 다시 시도해 주세요.", cause); } }