Skip to content

[ISSUE] webserv 에서 에러처리시 exception 객체 사용여부 + etc #25

@Two-Jay

Description

@Two-Jay

config parser 를 만들다가 일부 케이스에 에러처리를 해야할 필요성을 느꼈습니다. (들어온 config file이 비정상적일 때 몇몇 케이스)
따라서 에러처리 필요성이 있는데, 이를 어떻게 해야할 지 고민이 되네요.

제 생각은 공용으로 쓸 수 있는 exception 클래스를 하나 만들어 놓고, 인자로 에러케이스랑 에러메세지 받도록 설계한 다음 throw 할 수 있도록 하면 괜찮을 거 같은데, 어떠신가요?

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions