FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
core-processor/error.go at main · DoNewsCode/core-processor · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
DoNewsCode
/
core-processor
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
1
Pull requests
13
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
core-processor
/
error.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (23 loc) · 528 Bytes
Breadcrumbs
core-processor
/
error.go
Copy path
File metadata and controls
30 lines (23 loc) · 528 Bytes
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
package
processor
import
"github.com/pkg/errors"
// FatalErr raise this error to exist processor
type
FatalErr
interface
{
Fatal
()
bool
}
func
IsFatalErr
(
err
error
)
bool
{
var
fatalErr
FatalErr
return
errors
.
As
(
err
,
&
fatalErr
)
&&
fatalErr
.
Fatal
()
}
type
fatalError
struct
{
err
error
}
func
(
e
fatalError
)
Error
()
string
{
return
e
.
err
.
Error
()
}
func
(
e
fatalError
)
Fatal
()
bool
{
return
true
}
// NewFatalErr wrap original err to create FatalErr
func
NewFatalErr
(
err
error
)
error
{
return
&
fatalError
{
err
:
err
}
}
Back
|
FazBrowse Home
|
New Git URL