mirror of https://github.com/Genymobile/scrcpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
572 B
Java
22 lines
572 B
Java
package com.genymobile.scrcpy;
|
|
|
|
public class InvalidDisplayIdException extends RuntimeException {
|
|
|
|
private final int displayId;
|
|
private final int[] availableDisplayIds;
|
|
|
|
public InvalidDisplayIdException(int displayId, int[] availableDisplayIds) {
|
|
super("There is no display having id " + displayId);
|
|
this.displayId = displayId;
|
|
this.availableDisplayIds = availableDisplayIds;
|
|
}
|
|
|
|
public int getDisplayId() {
|
|
return displayId;
|
|
}
|
|
|
|
public int[] getAvailableDisplayIds() {
|
|
return availableDisplayIds;
|
|
}
|
|
}
|