cmderrors

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CantCreateSketchError

type CantCreateSketchError struct {
	Cause error
}

CantCreateSketchError is returned when the sketch cannot be created

func (*CantCreateSketchError) Error

func (e *CantCreateSketchError) Error() string

func (*CantCreateSketchError) Unwrap

func (e *CantCreateSketchError) Unwrap() error

type CantOpenSketchError

type CantOpenSketchError struct {
	Cause error
}

CantOpenSketchError is returned when the sketch is not found or cannot be opened

func (*CantOpenSketchError) Error

func (e *CantOpenSketchError) Error() string

func (*CantOpenSketchError) GRPCStatus

func (e *CantOpenSketchError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*CantOpenSketchError) Unwrap

func (e *CantOpenSketchError) Unwrap() error

type CantUpdateSketchError

type CantUpdateSketchError struct {
	Cause error
}

CantUpdateSketchError is returned when the sketch cannot be updated

func (*CantUpdateSketchError) Error

func (e *CantUpdateSketchError) Error() string

func (*CantUpdateSketchError) Unwrap

func (e *CantUpdateSketchError) Unwrap() error

type CommandError

type CommandError interface {
	// GRPCStatus convertes the error into a *status.Status
	GRPCStatus() *status.Status
}

CommandError is an error that may be converted into a gRPC status.

type CompileFailedError

type CompileFailedError struct {
	Message string
	Cause   error
}

CompileFailedError is returned when the compile fails

func (*CompileFailedError) Error

func (e *CompileFailedError) Error() string

func (*CompileFailedError) GRPCStatus

func (e *CompileFailedError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*CompileFailedError) Unwrap

func (e *CompileFailedError) Unwrap() error

type FailedDebugError

type FailedDebugError struct {
	Message string
	Cause   error
}

FailedDebugError is returned when the debug fails

func (*FailedDebugError) Error

func (e *FailedDebugError) Error() string

func (*FailedDebugError) GRPCStatus

func (e *FailedDebugError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*FailedDebugError) Unwrap

func (e *FailedDebugError) Unwrap() error

type FailedDownloadError

type FailedDownloadError struct {
	Message string
	Cause   error
}

FailedDownloadError is returned when a network download fails

func (*FailedDownloadError) Error

func (e *FailedDownloadError) Error() string

func (*FailedDownloadError) GRPCStatus

func (e *FailedDownloadError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*FailedDownloadError) Unwrap

func (e *FailedDownloadError) Unwrap() error

type FailedInstallError

type FailedInstallError struct {
	Message string
	Cause   error
}

FailedInstallError is returned if an install operation fails

func (*FailedInstallError) Error

func (e *FailedInstallError) Error() string

func (*FailedInstallError) GRPCStatus

func (e *FailedInstallError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*FailedInstallError) Unwrap

func (e *FailedInstallError) Unwrap() error

type FailedLibraryInstallError

type FailedLibraryInstallError struct {
	Cause error
}

FailedLibraryInstallError is returned if a library install operation fails

func (*FailedLibraryInstallError) Error

func (e *FailedLibraryInstallError) Error() string

func (*FailedLibraryInstallError) GRPCStatus

func (e *FailedLibraryInstallError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*FailedLibraryInstallError) Unwrap

func (e *FailedLibraryInstallError) Unwrap() error

type FailedMonitorError

type FailedMonitorError struct {
	Cause error
}

FailedMonitorError is returned when opening the monitor port of a board fails

func (*FailedMonitorError) Error

func (e *FailedMonitorError) Error() string

func (*FailedMonitorError) GRPCStatus

func (e *FailedMonitorError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*FailedMonitorError) Unwrap

func (e *FailedMonitorError) Unwrap() error

type FailedUninstallError

type FailedUninstallError struct {
	Message string
	Cause   error
}

FailedUninstallError is returned if an uninstall operation fails

func (*FailedUninstallError) Error

func (e *FailedUninstallError) Error() string

func (*FailedUninstallError) GRPCStatus

func (e *FailedUninstallError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*FailedUninstallError) Unwrap

func (e *FailedUninstallError) Unwrap() error

type FailedUploadError

type FailedUploadError struct {
	Message string
	Cause   error
}

FailedUploadError is returned when the upload fails

func (*FailedUploadError) Error

func (e *FailedUploadError) Error() string

func (*FailedUploadError) GRPCStatus

func (e *FailedUploadError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*FailedUploadError) Unwrap

func (e *FailedUploadError) Unwrap() error

type InitFailedError

type InitFailedError struct {
	Code   codes.Code
	Cause  error
	Reason rpc.FailedInstanceInitReason
}

InitFailedError is returned when the instance initialization fails

func (*InitFailedError) Error

func (ife *InitFailedError) Error() string

func (*InitFailedError) GRPCStatus

func (ife *InitFailedError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type InstanceNeedsReinitialization

type InstanceNeedsReinitialization struct {
}

InstanceNeedsReinitialization

func (*InstanceNeedsReinitialization) Error

func (*InstanceNeedsReinitialization) GRPCStatus

func (e *InstanceNeedsReinitialization) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type InvalidArgumentError

type InvalidArgumentError struct {
	Message string
	Cause   error
}

InvalidArgumentError is returned when an invalid argument is passed to the command

func (*InvalidArgumentError) Error

func (e *InvalidArgumentError) Error() string

func (*InvalidArgumentError) GRPCStatus

func (e *InvalidArgumentError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*InvalidArgumentError) Unwrap

func (e *InvalidArgumentError) Unwrap() error

type InvalidFQBNError

type InvalidFQBNError struct {
	Cause error
}

InvalidFQBNError is returned when the FQBN has syntax errors

func (*InvalidFQBNError) Error

func (e *InvalidFQBNError) Error() string

func (*InvalidFQBNError) GRPCStatus

func (e *InvalidFQBNError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*InvalidFQBNError) Unwrap

func (e *InvalidFQBNError) Unwrap() error

type InvalidInstanceError

type InvalidInstanceError struct{}

InvalidInstanceError is returned if the instance used in the command is not valid.

func (*InvalidInstanceError) Error

func (e *InvalidInstanceError) Error() string

func (*InvalidInstanceError) GRPCStatus

func (e *InvalidInstanceError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type InvalidLibraryError

type InvalidLibraryError struct {
	Cause error
}

InvalidLibraryError is returned when the library has syntax errors

func (*InvalidLibraryError) Error

func (e *InvalidLibraryError) Error() string

func (*InvalidLibraryError) GRPCStatus

func (e *InvalidLibraryError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*InvalidLibraryError) Unwrap

func (e *InvalidLibraryError) Unwrap() error

type InvalidPlatformPropertyError

type InvalidPlatformPropertyError struct {
	Property string
	Value    string
}

InvalidPlatformPropertyError is returned when a property in the platform is not valid

func (*InvalidPlatformPropertyError) Error

func (*InvalidPlatformPropertyError) GRPCStatus

func (e *InvalidPlatformPropertyError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type InvalidProfileError

type InvalidProfileError struct {
	Cause error
}

InvalidProfileError is returned when the profile has errors

func (*InvalidProfileError) Error

func (e *InvalidProfileError) Error() string

func (*InvalidProfileError) GRPCStatus

func (e *InvalidProfileError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*InvalidProfileError) Unwrap

func (e *InvalidProfileError) Unwrap() error

type InvalidURLError

type InvalidURLError struct {
	Cause error
}

InvalidURLError is returned when the URL has syntax errors

func (*InvalidURLError) Error

func (e *InvalidURLError) Error() string

func (*InvalidURLError) GRPCStatus

func (e *InvalidURLError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*InvalidURLError) Unwrap

func (e *InvalidURLError) Unwrap() error

type InvalidVersionError

type InvalidVersionError struct {
	Cause error
}

InvalidVersionError is returned when the version has syntax errors

func (*InvalidVersionError) Error

func (e *InvalidVersionError) Error() string

func (*InvalidVersionError) GRPCStatus

func (e *InvalidVersionError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*InvalidVersionError) Unwrap

func (e *InvalidVersionError) Unwrap() error

type LibraryDependenciesResolutionFailedError

type LibraryDependenciesResolutionFailedError struct {
	Cause error
}

LibraryDependenciesResolutionFailedError is returned when an inconsistency is found in library dependencies or a solution cannot be found.

func (*LibraryDependenciesResolutionFailedError) Error

func (*LibraryDependenciesResolutionFailedError) GRPCStatus

GRPCStatus converts the error into a *status.Status

func (*LibraryDependenciesResolutionFailedError) Unwrap

type LibraryNotFoundError

type LibraryNotFoundError struct {
	Library string
	Cause   error
}

LibraryNotFoundError is returned when a platform is not found

func (*LibraryNotFoundError) Error

func (e *LibraryNotFoundError) Error() string

func (*LibraryNotFoundError) GRPCStatus

func (e *LibraryNotFoundError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*LibraryNotFoundError) Unwrap

func (e *LibraryNotFoundError) Unwrap() error

type MissingFQBNError

type MissingFQBNError struct{}

MissingFQBNError is returned when the FQBN is mandatory and not specified

func (*MissingFQBNError) Error

func (e *MissingFQBNError) Error() string

func (*MissingFQBNError) GRPCStatus

func (e *MissingFQBNError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type MissingPlatformPropertyError

type MissingPlatformPropertyError struct {
	Property string
}

MissingPlatformPropertyError is returned when a property in the platform is not found

func (*MissingPlatformPropertyError) Error

func (*MissingPlatformPropertyError) GRPCStatus

func (e *MissingPlatformPropertyError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type MissingPortAddressError

type MissingPortAddressError struct{}

MissingPortAddressError is returned when the port protocol is mandatory and not specified

func (*MissingPortAddressError) Error

func (e *MissingPortAddressError) Error() string

func (*MissingPortAddressError) GRPCStatus

func (e *MissingPortAddressError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type MissingPortError

type MissingPortError struct{}

MissingPortError is returned when the port is mandatory and not specified

func (*MissingPortError) Error

func (e *MissingPortError) Error() string

func (*MissingPortError) GRPCStatus

func (e *MissingPortError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type MissingPortProtocolError

type MissingPortProtocolError struct{}

MissingPortProtocolError is returned when the port protocol is mandatory and not specified

func (*MissingPortProtocolError) Error

func (e *MissingPortProtocolError) Error() string

func (*MissingPortProtocolError) GRPCStatus

func (e *MissingPortProtocolError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type MissingProgrammerError

type MissingProgrammerError struct{}

MissingProgrammerError is returned when the programmer is mandatory and not specified

func (*MissingProgrammerError) Error

func (e *MissingProgrammerError) Error() string

func (*MissingProgrammerError) GRPCStatus

func (e *MissingProgrammerError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type MissingSketchPathError

type MissingSketchPathError struct{}

MissingSketchPathError is returned when the sketch path is mandatory and not specified

func (*MissingSketchPathError) Error

func (e *MissingSketchPathError) Error() string

func (*MissingSketchPathError) GRPCStatus

func (e *MissingSketchPathError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type MonitorNotFoundError

type MonitorNotFoundError struct {
	Monitor string
	Cause   error
}

MonitorNotFoundError is returned when the pluggable monitor is not found

func (*MonitorNotFoundError) Error

func (e *MonitorNotFoundError) Error() string

func (*MonitorNotFoundError) GRPCStatus

func (e *MonitorNotFoundError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*MonitorNotFoundError) Unwrap

func (e *MonitorNotFoundError) Unwrap() error

type MultipleBoardsDetectedError

type MultipleBoardsDetectedError struct {
	Port *rpc.Port
}

MultipleBoardsDetectedError is returned when trying to detect the FQBN of a board connected to a port fails because that are multiple possible boards detected.

func (*MultipleBoardsDetectedError) Error

func (*MultipleBoardsDetectedError) GRPCStatus

func (e *MultipleBoardsDetectedError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type MultipleLibraryInstallDetected

type MultipleLibraryInstallDetected struct {
	LibName string
	LibsDir paths.PathList
	Message string
}

MultipleLibraryInstallDetected is returned when the user request an operation on a library but multiple libraries with the same name (in library.properties) are detected.

func (*MultipleLibraryInstallDetected) Error

func (*MultipleLibraryInstallDetected) GRPCStatus

func (e *MultipleLibraryInstallDetected) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type MultiplePlatformsError

type MultiplePlatformsError struct {
	Platforms    []string
	UserPlatform string
}

MultiplePlatformsError is returned when trying to detect the Platform the user is trying to interact with and multiple results are found.

func (*MultiplePlatformsError) Error

func (e *MultiplePlatformsError) Error() string

func (*MultiplePlatformsError) GRPCStatus

func (e *MultiplePlatformsError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type NoBoardsDetectedError

type NoBoardsDetectedError struct {
	Port *rpc.Port
}

NoBoardsDetectedError is returned when detecting the FQBN of a board does not produce any result.

func (*NoBoardsDetectedError) Error

func (e *NoBoardsDetectedError) Error() string

func (*NoBoardsDetectedError) GRPCStatus

func (e *NoBoardsDetectedError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

type NoMonitorAvailableForProtocolError

type NoMonitorAvailableForProtocolError struct {
	Protocol string
}

NoMonitorAvailableForProtocolError is returned when a monitor for the specified port protocol is not available

func (*NoMonitorAvailableForProtocolError) Error

func (*NoMonitorAvailableForProtocolError) GRPCStatus

GRPCStatus converts the error into a *status.Status

type NotFoundError

type NotFoundError struct {
	Message string
	Cause   error
}

NotFoundError is returned when a resource is not found

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

func (*NotFoundError) GRPCStatus

func (e *NotFoundError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*NotFoundError) Unwrap

func (e *NotFoundError) Unwrap() error

type PermissionDeniedError

type PermissionDeniedError struct {
	Message string
	Cause   error
}

PermissionDeniedError is returned when a resource cannot be accessed or modified

func (*PermissionDeniedError) Error

func (e *PermissionDeniedError) Error() string

func (*PermissionDeniedError) GRPCStatus

func (e *PermissionDeniedError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*PermissionDeniedError) Unwrap

func (e *PermissionDeniedError) Unwrap() error

type PlatformAlreadyAtTheLatestVersionError

type PlatformAlreadyAtTheLatestVersionError struct {
	Platform string
}

PlatformAlreadyAtTheLatestVersionError is returned when a platform is up to date

func (*PlatformAlreadyAtTheLatestVersionError) Error

func (*PlatformAlreadyAtTheLatestVersionError) GRPCStatus

GRPCStatus converts the error into a *status.Status

type PlatformLoadingError

type PlatformLoadingError struct {
	Cause error
}

PlatformLoadingError is returned when a platform has fatal errors that prevents loading

func (*PlatformLoadingError) Error

func (e *PlatformLoadingError) Error() string

func (*PlatformLoadingError) GRPCStatus

func (e *PlatformLoadingError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*PlatformLoadingError) Unwrap

func (e *PlatformLoadingError) Unwrap() error

type PlatformNotFoundError

type PlatformNotFoundError struct {
	Platform string
	Cause    error
}

PlatformNotFoundError is returned when a platform is not found

func (*PlatformNotFoundError) Error

func (e *PlatformNotFoundError) Error() string

func (*PlatformNotFoundError) GRPCStatus

func (e *PlatformNotFoundError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*PlatformNotFoundError) Unwrap

func (e *PlatformNotFoundError) Unwrap() error

type ProgrammerNotFoundError

type ProgrammerNotFoundError struct {
	Programmer string
	Cause      error
}

ProgrammerNotFoundError is returned when the programmer is not found

func (*ProgrammerNotFoundError) Error

func (e *ProgrammerNotFoundError) Error() string

func (*ProgrammerNotFoundError) GRPCStatus

func (e *ProgrammerNotFoundError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*ProgrammerNotFoundError) Unwrap

func (e *ProgrammerNotFoundError) Unwrap() error

type ProgrammerRequiredForUploadError

type ProgrammerRequiredForUploadError struct{}

ProgrammerRequiredForUploadError is returned when the upload can be done only using a programmer

func (*ProgrammerRequiredForUploadError) Error

func (*ProgrammerRequiredForUploadError) GRPCStatus

GRPCStatus converts the error into a *status.Status

type SignatureVerificationFailedError

type SignatureVerificationFailedError struct {
	File  string
	Cause error
}

SignatureVerificationFailedError is returned if a signature verification fails

func (*SignatureVerificationFailedError) Error

func (*SignatureVerificationFailedError) GRPCStatus

GRPCStatus converts the error into a *status.Status

func (*SignatureVerificationFailedError) Unwrap

type TempDirCreationFailedError

type TempDirCreationFailedError struct {
	Cause error
}

TempDirCreationFailedError is returned if a temp dir could not be created

func (*TempDirCreationFailedError) Error

func (*TempDirCreationFailedError) GRPCStatus

func (e *TempDirCreationFailedError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*TempDirCreationFailedError) Unwrap

func (e *TempDirCreationFailedError) Unwrap() error

type TempFileCreationFailedError

type TempFileCreationFailedError struct {
	Cause error
}

TempFileCreationFailedError is returned if a temp file could not be created

func (*TempFileCreationFailedError) Error

func (*TempFileCreationFailedError) GRPCStatus

func (e *TempFileCreationFailedError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*TempFileCreationFailedError) Unwrap

func (e *TempFileCreationFailedError) Unwrap() error

type UnavailableError

type UnavailableError struct {
	Message string
	Cause   error
}

UnavailableError is returned when a resource is temporarily not available

func (*UnavailableError) Error

func (e *UnavailableError) Error() string

func (*UnavailableError) GRPCStatus

func (e *UnavailableError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*UnavailableError) Unwrap

func (e *UnavailableError) Unwrap() error

type UnknownFQBNError

type UnknownFQBNError struct {
	Cause error
}

UnknownFQBNError is returned when the FQBN is not found

func (*UnknownFQBNError) Error

func (e *UnknownFQBNError) Error() string

func (*UnknownFQBNError) GRPCStatus

func (e *UnknownFQBNError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*UnknownFQBNError) Unwrap

func (e *UnknownFQBNError) Unwrap() error

type UnknownProfileError

type UnknownProfileError struct {
	Profile string
	Cause   error
}

UnknownProfileError is returned when the profile is not found

func (*UnknownProfileError) Error

func (e *UnknownProfileError) Error() string

func (*UnknownProfileError) GRPCStatus

func (e *UnknownProfileError) GRPCStatus() *status.Status

GRPCStatus converts the error into a *status.Status

func (*UnknownProfileError) Unwrap

func (e *UnknownProfileError) Unwrap() error

Jump to

Keyboard shortcuts

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

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy