WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
WPIErrors.mac
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5S(ModuleIndexOutOfRange, -1,
6 "Allocating module that is out of range or not found")
7S(ChannelIndexOutOfRange, -45, "Allocating channel that is out of range")
8S(NotAllocated, -2, "Attempting to free unallocated resource")
9S(ResourceAlreadyAllocated, -3, "Attempted to reuse an allocated resource")
10S(NoAvailableResources, -4, "No available resources to allocate")
11S(NullParameter, -5, "A pointer parameter to a method is nullptr")
12S(Timeout, -6, "A timeout has been exceeded")
13S(CompassManufacturerError, -7, "Compass manufacturer doesn't match HiTechnic")
14S(CompassTypeError, -8,
15 "Compass type doesn't match expected type for HiTechnic compass")
16S(IncompatibleMode, -9, "The object is in an incompatible mode")
17S(AnalogTriggerLimitOrderError, -10,
18 "AnalogTrigger limits error. Lower limit > Upper Limit")
19S(AnalogTriggerPulseOutputError, -11,
20 "Attempted to read AnalogTrigger pulse output")
21S(TaskError, -12, "Task can't be started")
22S(TaskIDError, -13, "Task error: Invalid ID")
23S(TaskDeletedError, -14, "Task error: Task already deleted")
24S(TaskOptionsError, -15, "Task error: Invalid options")
25S(TaskMemoryError, -16, "Task can't be started due to insufficient memory")
26S(TaskPriorityError, -17, "Task error: Invalid priority [1-255]")
27S(DriveUninitialized, -18, "RobotDrive not initialized for the C interface")
28S(CompressorNonMatching, -19,
29 "Compressor slot/channel doesn't match previous instance")
30S(CompressorAlreadyDefined, -20, "Creating a second compressor instance")
31S(CompressorUndefined, -21,
32 "Using compressor functions without defining compressor")
33S(InconsistentArrayValueAdded, -22,
34 "When packing data into an array to the dashboard, not all values added were "
35 "of the same type")
36S(MismatchedComplexTypeClose, -23,
37 "When packing data to the dashboard, a Close for a complex type was called "
38 "without a matching Open")
39S(DashboardDataOverflow, -24,
40 "When packing data to the dashboard, too much data was packed and the buffer "
41 "overflowed")
42S(DashboardDataCollision, -25,
43 "The same buffer was used for packing data and for printing")
44S(EnhancedIOMissing, -26, "IO is not attached or Enhanced IO is not enabled")
45S(LineNotOutput, -27,
46 "Cannot SetDigitalOutput for a line not configured for output")
47S(ParameterOutOfRange, -28, "A parameter is out of range")
48S(SPIClockRateTooLow, -29, "SPI clock rate was below the minimum supported")
49S(JaguarVersionError, -30, "Jaguar firmware version error")
50S(JaguarMessageNotFound, -31, "Jaguar message not found")
51S(NetworkTablesReadError, -40, "Error reading NetworkTables socket")
52S(NetworkTablesBufferFull, -41, "Buffer full writing to NetworkTables socket")
53S(NetworkTablesWrongType, -42,
54 "The wrong type was read from the NetworkTables entry")
55S(NetworkTablesCorrupt, -43, "NetworkTables data stream is corrupt")
56S(SmartDashboardMissingKey, -44, "SmartDashboard data does not exist")
57S(CommandIllegalUse, -50, "Illegal use of Command")
58S(UnsupportedInSimulation, -80, "Unsupported in simulation")
59S(CameraServerError, -90, "CameraServer error")
60S(InvalidParameter, -100, "Invalid parameter value")
61S(AssertionFailure, -110, "Assertion failed")
62S(Error, -111, "Error")