public class RenderingError extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CONTEXT_CREATION_ERROR
Indicates that an error occurred while creating an OpenGL or D3D
graphics context.
|
static int |
GRAPHICS_CONFIG_ERROR
Indicates that an error occurred while getting the best graphics
configuration or while testing whether a given graphics config is
supported.
|
static int |
NO_ERROR
Indicates that no error occurred.
|
static int |
OFF_SCREEN_BUFFER_ERROR
Indicates a error in creating a rendering buffer for an off-screen
Canvas3D.
|
static int |
UNEXPECTED_RENDERING_ERROR
Indicates that an unexpected rendering exception was caught by the
Java 3D renderer thread.
|
Constructor and Description |
---|
RenderingError()
Constructs a new RenderingError object indicating no error.
|
RenderingError(int errorCode,
String errorMessage)
Constructs a new RenderingError object with the given error code
and message.
|
Modifier and Type | Method and Description |
---|---|
Canvas3D |
getCanvas3D()
Returns the canvas associated with this rendering error.
|
String |
getDetailMessage()
Returns the detail message for this rendering error.
|
int |
getErrorCode()
Returns the error code for this rendering error.
|
String |
getErrorMessage()
Returns the error message for this rendering error.
|
GraphicsDevice |
getGraphicsDevice()
Returns the graphics device associated with this rendering error.
|
void |
printVerbose()
Prints a verbose error report to System.err.
|
void |
printVerbose(PrintStream printStream)
Prints a verbose error report to the specified PrintStream.
|
void |
setCanvas3D(Canvas3D canvas)
Sets the canvas associated with this rendering error.
|
void |
setDetailMessage(String detailMessage)
Sets the detail message for this rendering error.
|
void |
setErrorCode(int errorCode)
Sets the error code for this rendering error.
|
void |
setErrorMessage(String errorMessage)
Sets the error message for this rendering error.
|
void |
setGraphicsDevice(GraphicsDevice graphicsDevice)
Sets the graphics device associated with this rendering error.
|
String |
toString()
Returns a short string that describes this rendering error.
|
public static final int NO_ERROR
public static final int UNEXPECTED_RENDERING_ERROR
public static final int GRAPHICS_CONFIG_ERROR
public static final int CONTEXT_CREATION_ERROR
public static final int OFF_SCREEN_BUFFER_ERROR
public RenderingError()
NO_ERROR
. All other fields
are initialized to null, including the error message.public RenderingError(int errorCode, String errorMessage)
errorCode
- the error code for this rendering error.errorMessage
- a short error message describing this
rendering error.public void printVerbose()
public void printVerbose(PrintStream printStream)
printStream
- the print stream on which to print the error
report.public void setErrorCode(int errorCode)
errorCode
- the error code for this rendering error.public int getErrorCode()
public void setErrorMessage(String errorMessage)
errorMessage
- a short error message describing this
rendering error.public String getErrorMessage()
public void setDetailMessage(String detailMessage)
detailMessage
- a detailed message describing this
error in more detail.public String getDetailMessage()
public void setGraphicsDevice(GraphicsDevice graphicsDevice)
graphicsDevice
- the graphics device associated with this rendering error.public GraphicsDevice getGraphicsDevice()
public void setCanvas3D(Canvas3D canvas)
canvas
- the canvas associated with this rendering error.public Canvas3D getCanvas3D()
public String toString()
Copyright © 2016–2022 SciJava. All rights reserved.