Documentation

Overview

    Package trap enumerates trap identifiers.

    Index

    Constants

    View Source
    const (
    	Exit       = ID(iota)
    	NoFunction // Recoverable (nonportable).  Return address must be adjusted.
    	Suspended  // Recoverable (portable).
    	Unreachable
    	CallStackExhausted // Recoverable (portable).
    	MemoryAccessOutOfBounds
    	IndirectCallIndexOutOfBounds
    	IndirectCallSignatureMismatch
    	IntegerDivideByZero
    	IntegerOverflow
    	Breakpoint // Recoverable (portable).
    
    	NumTraps
    )

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type ID

    type ID int

    func (ID) Error

    func (id ID) Error() string

    func (ID) String

    func (id ID) String() string

    Source Files