errors.go 321 Bytes
Newer Older
Patrick Devine's avatar
Patrick Devine committed
1
2
3
4
5
6
package readline

import (
	"errors"
)

Michael Yang's avatar
lint  
Michael Yang committed
7
var ErrInterrupt = errors.New("Interrupt")
Patrick Devine's avatar
Patrick Devine committed
8

9
10
11
// ErrExpandOutput is returned when user presses Ctrl+O to expand tool output
var ErrExpandOutput = errors.New("ExpandOutput")

Patrick Devine's avatar
Patrick Devine committed
12
13
14
15
16
17
18
type InterruptError struct {
	Line []rune
}

func (*InterruptError) Error() string {
	return "Interrupted"
}