toCheckedException method

CheckedException<T?> toCheckedException( {
  1. required String prefix,
  2. required ({String english, String? locale}) message,
})

현재 데이터(null 포함)를 원인(value)으로 하는 CheckedException을 생성합니다.

데이터가 null인 상태 자체가 비즈니스 예외의 원인일 때 사용합니다.

Creates a CheckedException using the current nullable data as the cause (value). Used when the null state itself is the cause of a business exception.

Implementation

CheckedException<T?> toCheckedException({
  required String prefix,
  required ({String english, String? locale}) message,
}) {
  return GenericCheckedException<T?>(value: this, prefix: prefix, message: message);
}