RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
AlertException.java
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
5package org.wpilib.util;
6
8public class AlertException extends RuntimeException {
9 private static final long serialVersionUID = -4273483424L;
10
12 private final int reason;
13
20 public AlertException(String message, int reason) {
21 super(message);
22 this.reason = reason;
23 }
24
30 public int getReason() {
31 return reason;
32 }
33}
AlertException(String message, int reason)