Skip to content

Service methods should be possible to specify its error type #127

Merged
kanghyojun merged 3 commits into
nirum-lang:masterfrom
kanghyojun:throw-errors
Apr 20, 2017
Merged

Service methods should be possible to specify its error type #127
kanghyojun merged 3 commits into
nirum-lang:masterfrom
kanghyojun:throw-errors

Conversation

@kanghyojun

Copy link
Copy Markdown
Member

#38

Comment thread examples/pdf-service.nrm Outdated
@@ -1,3 +1,5 @@
@error("")

@dahlia dahlia Mar 23, 2017

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Annotations don't have to have arguments (including parentheses). Therefore we can simplify this as @error. See also the parser code.

@kanghyojun kanghyojun changed the title [WIP] Service methods should be possible to specify its error type Service methods should be possible to specify its error type Apr 1, 2017
@kanghyojun

kanghyojun commented Apr 1, 2017

Copy link
Copy Markdown
Member Author

이제 남은 것은 Runtime쪽에서 __nirum_method_error_types__를 잡아서 에러로 반환하도록 하는 정도입니다 리뷰 부탁드려요 @dahlia

@dahlia dahlia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@admire93 파일 중간에 패치 충돌한 흔적들이 보입니다.

@kanghyojun

Copy link
Copy Markdown
Member Author

@dahlia 리뷰를 부탁드립니다.

Comment thread src/Nirum/Targets/Python.hs Outdated
compileTypeDeclaration src
TypeDeclaration { typename = typename'
, type' = UnionType tags
, typeAnnotations = annotations } = do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

닫는 중괄호를 여는 중괄호에 맞춰서 들여쓰기 부탁합니다.

@kanghyojun
kanghyojun merged commit 6b0223e into nirum-lang:master Apr 20, 2017
@kanghyojun kanghyojun self-assigned this Apr 20, 2017
@kanghyojun

Copy link
Copy Markdown
Member Author

nirum-lang/nirum-python#71 is folloing issue.

@dahlia dahlia added cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) cmp:runtime Component: Target runtimes cmp:transport Component: Transports labels Aug 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) cmp:runtime Component: Target runtimes cmp:transport Component: Transports

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants