Documentation
¶
Overview ¶
error についてのサンプルが配置されているパッケージです。
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SentinelError = errors.New("example: sentinel error check")
)
Functions ¶
func NewRegister ¶
func Sentinel ¶
func Sentinel() error
Sentinel は、Goにおけるエラー処理イディオムの sentinel error check についてのサンプルです. REFERENCES::
func TypeAssertion ¶
func TypeAssertion() error
TypeAssertion は、Goにおけるエラー処理イディオムの type assertion check についてのサンプルです. REFERENCES::
func WrapAndUnwrap ¶
func WrapAndUnwrap() error
WrapAndUnwrap は、Goにおけるエラー処理にてエラーを内包するやり方についてのサンプルです。 REFERENCES::
Types ¶
type TypeAssertionError ¶
type TypeAssertionError struct{}
func (*TypeAssertionError) Error ¶
func (t *TypeAssertionError) Error() string
Click to show internal directories.
Click to hide internal directories.