earticle

논문검색

[논문]

에러 처리 방식의 변환을 위한 확장된 C++ RTTI 연산자: exception_cast

원문정보

An Extended C++ RTTI operator for converting error-handling method: exception_cast

권병규, 신병석

피인용수 : 0(자료제공 : 네이버학술정보)

초록

영어

We propose exception_cast operator that converts return-value-based error handling mechanism to exception-based one. Because return-value-based error handlers can not control the program’s execution, the time of error occurrence and its detection may be different. Exception leads to build strong error-tolerant programs because it can control a program’s execution and reduce duplication of erroneous codes. The exception_cast compels functions that represent their error as return values or status variables to exploit exceptions consistently in order to make the best use of advantages of exception. It extends C++ RTTI (RunTime Type Information) type-casting operators and shows that return value is used to detect errors explicitly

한국어

본 연구에서는 리턴값 기반 에러 처리를 예외 기반 에러 처리로 변환하는 exception_cast를 제안한다. 함수의 리턴값이나 상태 변수를 사용하는 에러 처리 방식은 에러가 발생했을 때 프로그램 수행을 강제적으로 제어할 수단이 없기 때문에 에러 발생 시점과 에러 검출 시점이 일치하지 않을 수 있다. 예외는 프로그램의 실행을 제어할 수 있으며, 에러 처리 코드의 중복을 줄이기 때문에 에러에 견고한 코드를 작성하는데 유리하다. exception_cast는 예외 처리의 장점을 활용하기 위해, 리턴값이나 상태 변수로 에러를 나타내는 함수들이 일관적으로 예외를 사용하도록 변환한다. exception_cast는 C++ RTTI(RunTime Type Information) 형변환 연산자의 개념을 확장한 것이며, 함수의 수행 결과값이 에러를 검출하기 위해 사용된다는 것을 명시적으로 나타낸다.

목차

요약
 Abstract
 1. 서론
 2. 관련연구
 3. RTTI 연산자 확장에 의한 에러 처리 변환
  3.1 에러 처리 방식의 변환 필요성
  3.2 RTTI 형변환 연산자의 확장: exception_cast
  3.3 exception_cast의 구현
  3.4 exception_cast 사용에 따른 성능 문제
 4. 실험결과
  4.1 try-catch 블록 사용에 따른 성능 측정
  4.2 재귀 호출 횟수에 따른 성능 측정
  4.3 직접 예외 호출과 성능 비교
  4.4 exception_cast에 의한 명확한 에러 처리
 5. 결론
 참고문헌

저자정보

  • 권병규 Byeong-Gyu Kwon. 인하대학교 컴퓨터 정보공학과
  • 신병석 Byeong-Seok Shin. 인하대학교 컴퓨터 정보공학과

참고문헌

자료제공 : 네이버학술정보

    함께 이용한 논문

      0개의 논문이 장바구니에 담겼습니다.