All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.moaxcp.x11client.X11ErrorException Maven / Gradle / Ivy

There is a newer version: 0.18.2
Show newest version
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