github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/runtime/error.go (about) 1 // Copyright 2010 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package runtime 6 7 // Error インターフェースはランタイムエラーを識別します。 8 type Error interface { 9 error 10 11 RuntimeError() 12 } 13 14 // TypeAssertionErrorは、型アサーションの失敗を説明します。 15 type TypeAssertionError struct { 16 _interface *_type 17 concrete *_type 18 asserted *_type 19 missingMethod string 20 } 21 22 func (*TypeAssertionError) RuntimeError() 23 24 func (e *TypeAssertionError) Error() string