codes

package
v1.0.0-rc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2019 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Unspecified - 1000: The error code was unspecified
	Unspecified std.Code = iota + 1000
	// Unknown - 1001: An unspecified error occurred.
	Unknown
	// MockErr - 1002: An error occurred in a test mock.
	MockErr
)
View Source
const (
	// ChromeCannotOpenStderr - 2000: Cannot open error output file.
	ChromeCannotOpenStderr std.Code = iota + 2000
	// ChromeCannotOpenStdout - 2001: Cannot open standard output file.
	ChromeCannotOpenStdout
	// ChromeExitTimeout - 2002: Error waiting for process exit.
	ChromeExitTimeout
	// ChromeInvalidWorkdir - 2003: Cannot create working directory.
	ChromeInvalidWorkdir
	// ChromeQueryFailed - 2004: Chrome.Query() returned an error.
	ChromeQueryFailed
	// ChromeSigintFailed - 2005: Chromium process interrupt failed.
	ChromeSigintFailed
	// ChromeStartTimeout - 2006: Chromium took too long to start.
	ChromeStartTimeout
	// ChromeTabNotFound - 2007: Chromium tab not found.
	ChromeTabNotFound
	// ChromeVersionQueryFailed - 2008: Chromium version query failed.
	ChromeVersionQueryFailed
)

////////////////////////////////////////////////////////////////////////// Chrome errors //////////////////////////////////////////////////////////////////////////

View Source
const (
	// FlagDoesNotExist - 3000: The specified argument does not exist.
	FlagDoesNotExist std.Code = iota + 3000
	// FlagTypeInvalid - 3001: Invalid data type for the specified argument.
	FlagTypeInvalid
)

////////////////////////////////////////////////////////////////////////// Flag errors //////////////////////////////////////////////////////////////////////////

View Source
const (

	// TabQueryFailed - 4000: The new tab query failed.
	TabQueryFailed std.Code = iota + 4000
	// TabURLInvalid - 4001: Invalid URL passed to NewTab.
	TabURLInvalid
	// TabWebsocketURLInvalid - 4002: Invalid websocket URL.
	TabWebsocketURLInvalid
)

////////////////////////////////////////////////////////////////////////// Tab errors //////////////////////////////////////////////////////////////////////////

View Source
const (
	// SocketCloseFailed - 5000: A failure occurred while closing a websocket.
	SocketCloseFailed std.Code = iota + 5000
	// SocketReadFailed - 5001: A failure occurred while reading from a websocket.
	SocketReadFailed
	// SocketCmdHandlerNotFound - 5002: Command handler not found.
	SocketCmdHandlerNotFound
	// SocketReadFailed - 5002: Attempted to add a duplicate handler for event.
	SocketDuplicateEventHandler
	// SocketEventHandlerNotFound - 5003: No event listeners found for an event.
	SocketEventHandlerNotFound
	// SocketConnectFailed - 5003: Connect() failed while creating socket.
	SocketConnectFailed
	// SocketNotConnected - 5003: Not connected.
	SocketNotConnected
	// SocketWriteFailed - 5003: Socket write failed.
	SocketWriteFailed
	// SocketPanic - 5003: A panic occurred while reading from a websocket.
	SocketPanic
)

////////////////////////////////////////////////////////////////////////// Socket errors //////////////////////////////////////////////////////////////////////////

View Source
const (
	// WebsocketConnectFailed - 6000: Websocket connection failed.
	WebsocketConnectFailed std.Code = iota + 6000
	// WebsocketNotConnected - 6001: Websocket not connected.
	WebsocketNotConnected
	// WebsocketPanic - 5002: A panic occurred while reading from a websocket.
	WebsocketPanic
)

////////////////////////////////////////////////////////////////////////// Webocket errors //////////////////////////////////////////////////////////////////////////

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL