public class WMSException
extends java.lang.Exception
Constructor and Description |
---|
WMSException(int code)
Create a new exception
|
WMSException(int code,
java.lang.String msg)
Create a new exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Return the message text ready for output
|
static void |
main(java.lang.String[] args)
for testing purposes, provide standalone facility
Note: not yet - needs messageFile from WmsServlet + specific Debug.java + Globals.java
|
void |
toJpeg(java.io.BufferedOutputStream os,
int width,
int height)
Render message into image, insert line breaks where needed
|
java.lang.String |
toString()
Generate version 1.1.0 conforming xml output
|
public WMSException(int code)
code
- the exception code (numeric, as string)public WMSException(int code, java.lang.String msg)
code
- the exception code (see Global.java)msg
- an extra message textpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
public void toJpeg(java.io.BufferedOutputStream os, int width, int height) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)