public class OGCException
extends java.lang.Exception
The exception information of the relevant OGC service.
| Constructor and Description | 
|---|
| OGCException(boolean isExecuteLog, java.lang.Exception e)Constructs a new exception based on whether to output the log information and the known exception. | 
| OGCException(boolean isExecuteLog, java.lang.String msg)Constructs a new exception based on whether to output the log information and the specified detail message. | 
| OGCException(boolean isExecuteLog, java.lang.String message, java.lang.String code, java.lang.String locator)Constructs a new exception based on whether to output the log information and the specified detail message, the exception codes and exception position. | 
| OGCException(boolean isExecuteLog, java.lang.String message, java.lang.String code, java.lang.String locator, java.lang.Throwable e)Constructs a new exception based on whether to output the log information and the specified detail message, the exception codes, exception position and the reason. | 
| OGCException(boolean isExecuteLog, java.lang.String msg, java.lang.Throwable e)Constructs a new exception based on whether to output the log information and the specified detail message and the reason. | 
| OGCException(java.lang.Exception e)Construct a new exception with an existing exception. | 
| OGCException(java.lang.String msg)Construct new exception with a detailed message. | 
| OGCException(java.lang.String msg, java.lang.Throwable e)Construct new exception with the specific detailed message. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getCode()Get exception code. | 
| java.lang.String | getFormat()Get the format of the exception information. | 
| java.lang.String | getLocator()Get exception location. | 
| boolean | isExecuteLog()whether to output the log information. | 
| void | setCode(java.lang.String code)Set exception code. | 
| void | setFormat(java.lang.String format)Set the format of the exception information. | 
| void | setLocator(java.lang.String locator)Set exception location. | 
public OGCException(java.lang.String msg)
msg - detailed message.
public OGCException(boolean isExecuteLog,
            java.lang.String msg)
isExecuteLog - whether to output the log information, true means to output, false means not.msg - detailed message.public OGCException(java.lang.Exception e)
e - the existing exception.
public OGCException(boolean isExecuteLog,
            java.lang.Exception e)
isExecuteLog - whether to output the log information, true means to output, false means not.e - the existing exception.
public OGCException(java.lang.String msg,
            java.lang.Throwable e)
msg - detailed message.e - reason.
public OGCException(boolean isExecuteLog,
            java.lang.String msg,
            java.lang.Throwable e)
isExecuteLog - whether to output the log information, true means to output, false means not.msg - detailed message.e - reason.
public OGCException(boolean isExecuteLog,
            java.lang.String message,
            java.lang.String code,
            java.lang.String locator)
isExecuteLog - whether to output the log information, true means to output, false means not.message - detailed message.code - the exception codes.locator - exception location.
public OGCException(boolean isExecuteLog,
            java.lang.String message,
            java.lang.String code,
            java.lang.String locator,
            java.lang.Throwable e)
Constructs a new exception based on whether to output the log information and the specified detail message, the exception codes, exception position and the reason.
isExecuteLog - whether to output the log information, true means to output, false means not.message - detailed message.code - the exception codes.locator - exception location.e - reason.public boolean isExecuteLog()
public void setCode(java.lang.String code)
code - the exception codes.public void setLocator(java.lang.String locator)
locator - exception location.public java.lang.String getCode()
public java.lang.String getLocator()
public java.lang.String getFormat()
public void setFormat(java.lang.String format)
format - the format of the exception information.