com.github.moaxcp.x11client.X11ErrorException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of x11-client Show documentation
Show all versions of x11-client Show documentation
An x11 client implemented in java
package com.github.moaxcp.x11client;
import com.github.moaxcp.x11client.protocol.XError;
import lombok.Getter;
import lombok.NonNull;
/**
* An exception thrown when the x11 server returns an {@link XError} which has not been recovered from.
*
* Could use xlib code to get error message https://github.com/mirror/libX11/blob/caa71668af7fd3ebdd56353c8f0ab90824773969/src/ErrDes.c
*/
@Getter
public class X11ErrorException extends RuntimeException {
/**
* The error returned from the server
*/
private XError error;
/**
* Creates an X11Error exception.
* @param error from server. non-null
*/
X11ErrorException(@NonNull XError error) {
super(error.toString());
this.error = error;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy