Skip to Content
우아한 C언어 코딩 패턴
book

우아한 C언어 코딩 패턴

by Christoper Preschem, 정기훈(Jung Ki Hun)
April 2024
Beginner to intermediate
364 pages
7h 2m
Korean
Insight
Content preview from 우아한 C언어 코딩 패턴
C
47
󻪿󺇏󺣫󽴔󻫳󺸧󽴔󻃧󼬧
다음으로, 지금까지 언급한 사항들을 고려하여 실제로 호출자에게 유용한
오류 정보만 제공하기 위한 방법인 연관된 오류 반환(Return Relevant Errors)
패턴을 설명할 것이다.
󻪿󺇏󺣫󽴔󻫳󺸧󽴔󻃧󼬧
󼎷󼘜󻝳󼞇
일부 오류 처리를 수행하는 소프트웨어 모듈을 구현한 상태에서 호출자에게
오류 정보를 반환하려 한다.
󻀇󻳫
󼬇󼉫󻱟󺝣󽴔󻃧󺦫󻞫󽴔󻫳󺸧󻪟󽴔󺟏󻰠󼨯󽴔󻛧󽴔󻱗󻪃󻩋󽴔󼨫󺞳󻃧󺽃󻪟󽴔󻃧󼬧󼨧󺝣󽴔󻫳󺸧󽴔󻳤󻇃󺃏󽴔󺺝󻰓󻛧󺴬
󻫳󺸧󽴔󻳤󻇃󽴔󻖬󻘀󽴔󼐣󺦫󻬏󽴔󻱃󺹋󽴔󼅧󺹻󼨧󺝣󽴔󼬇󼉫󻱟󻰧󽴔󼐣󺦫󺝣󽴔󺌇󻪃󻺗󽴔󻛧󻃥󻪟󽴔󻪕󺞳󼐣󺦫󺃏󽴔󺌇󻪃
󻺗󻛧󺴬󽴔󻱌󺆯󽴔󻯯󻺏󺇏󺹻󼨧󺋿󺃏󽴔󼱧󺦳󻪃󻺏󺆯󽴔󼉣󺃏󽴔󻅓󺋇󺃏󽴔󻖬󺌇󽴔󻯓󼪧󻱃󽴔󻱗󺞳
여러분의 일은 호출자에 오류 정보를 반환하기 위해 오류를 감지하고 해당
오류 정보를 반환하는 것으로 끝나지 않는다. 반환되는 오류에 대한 정보를 문
서화하여 API에 기록해야 한다. 이 작업을 하지 않으면 호출자는 어떤 오류가
발생하는지 예상하고 대응할 수 없다. 오류에 따른 동작을 문서화하는 작업도
꼭 필요하다. 오류 유형이 많아질수록 더 많은 문서 작업이 필요하다.
매우 자세하면서 구현에 특화된 오류 정보를 반환하고, 추후에 구현 변경이
발생할 때 코드에 오류 정보를 추가하는 것은 구현을 변경할 때마다 인터페이
스를 의미 있는 수준으로 변경해야 함을 뜻한다. 동시에, 반환되는
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

AI를 위한 필수 수학

AI를 위한 필수 수학

할라 넬슨
파이썬으로 살펴보는 아키텍처 패턴

파이썬으로 살펴보는 아키텍처 패턴

오현석, 해리 퍼시벌, 밥 그레고리
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에
클라우드 네이티브 애플리케이션 디자인 패턴

클라우드 네이티브 애플리케이션 디자인 패턴

카순 인드라시리, 스리스칸다라자 수호티얀

Publisher Resources

ISBN: 9788966264742