errors

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ErrInvalidPartitionName int32 = 2000
	ErrInvalidNodeCount     int32 = 2006
	ErrMaxJobCount          int32 = 2007 // Slurm 26.05.2 on; earlier releases return EAGAIN instead.
	ErrBadTaskCount         int32 = 2025
	ErrInvalidFeature       int32 = 2029
	ErrInvalidAccount       int32 = 2045
	ErrInvalidLicenses      int32 = 2048
	ErrAccountingPolicy     int32 = 2050
	ErrInvalidTimeLimit     int32 = 2051
	ErrInvalidWCKey         int32 = 2057
	ErrInvalidQOS           int32 = 2066
	ErrPartitionNotAvail    int32 = 2070
	ErrInvalidGRES          int32 = 2072
	ErrPartitionDown        int32 = 2101
	ErrInvalidTRES          int32 = 2115
	ErrUserIDInvalid        int32 = 2165
	ErrUserIDUnknown        int32 = 2166
)

Slurm error numbers from slurm_errno.h, for matching SlurmError.Number.

Variables

View Source
var (
	// ErrNotFound indicates that a lookup returned no matching object.
	ErrNotFound = errors.New("not found")

	// ErrNotImplemented indicates an unsupported object type or operation in this client.
	ErrNotImplemented = errors.New("not implemented")
)

Functions

func NewHTTPError

func NewHTTPError(statusCode int) error

NewHTTPError returns the client error for an HTTP status code.

Types

type SlurmError

type SlurmError struct {
	Number      int32
	Source      string
	Message     string
	Description string
}

SlurmError is an error reported by slurmrestd. Use errors.As to read the Slurm error number; Error returns the short message alone.

func (*SlurmError) Error

func (e *SlurmError) Error() string

Jump to

Keyboard shortcuts

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