Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
cppis
elio
Repository navigation
Code
Issues
1
(1)
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
dev
Breadcrumbs
elio
/
error.code.go
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
39 lines (31 loc) · 1.54 KB
dev
Breadcrumbs
elio
/
error.code.go
Copy path
Top
File metadata and controls
Code
Blame
39 lines (31 loc) · 1.54 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package elio
// todo range 별 클라 액션을 정하는게..? ex) 100번대는 에러리턴 후 타이틀로 이동 200번대는 에러만 출력 이런식으로...
// Common
const (
Success int32 = 0
CurlSuccess int32 = 200
ResponseCodeUnpackError int32 = 11 // packet unpack error
ResponseCodeMarshalError int32 = 12 // message marshal error
ResponseCodeHttpError int32 = 13 // http 통신 에러
)
// Frontend & Relayer
const (
ResponseCodeNotLoggedIn int32 = 101 // 로그인 상태가 아닌 경우
ResponseCodeAlreadyLoggedOn int32 = 102 // 이미 로그인 상태인 경우
ResponseCodeDuplicateLogin int32 = 103 // 중복로그인. 클라이언트는 이 에러코드를 받으면 타이틀로 이동.
ResponseCodeNotInTheRoom int32 = 104 // 방안에 있는 상태가 아닌 경우
ResponseCodeAlreadyInTheRoom int32 = 105 // 이미 방안에 있는 상태인 경우
ResponseCodeNotWaitingRoom int32 = 104 // 방이 존재 & 유저를 기다리는 상태가 아닌 경우
ResponseCodeFailToLogon int32 = 201
ResponseCodeFailToLogoff int32 = 202
ResponseCodeFailToReqPvPRandomMatching int32 = 203
ResponseCodeFailToEnterRoom int32 = 204
ResponseCodeFailToReadyPvPGame int32 = 205
)
// todo 추후 삭제 예정, 샘플 서버에서 사용하는 코드는 상단의 코드로 교체 필요 (사용하는 코드는 상단에만 존재)
const (
ErrNotLoggedon int32 = 101
ErrFailToFindRoom int32 = 103
ErrAlreadyLoginUser int32 = 301
ErrNotExistInRoom int32 = 313
)
You can’t perform that action at this time.