com.supermap.services

Class OGCException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • com.supermap.services.OGCException
  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    OGCParameterException


    public class OGCException
    extends java.lang.Exception
    

    The exception information of the relevant OGC service.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      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.
    • Method Summary

      Methods 
      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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OGCException

        public OGCException(java.lang.String msg)
        
        Construct new exception with a detailed message.
        Parameters:
        msg - detailed message.
      • OGCException

        public OGCException(boolean isExecuteLog,
                    java.lang.String msg)
        
        Constructs a new exception based on whether to output the log information and the specified detail message.
        Parameters:
        isExecuteLog - whether to output the log information, true means to output, false means not.
        msg - detailed message.
      • OGCException

        public OGCException(java.lang.Exception e)
        
        Construct a new exception with an existing exception.
        Parameters:
        e - the existing exception.
      • OGCException

        public OGCException(boolean isExecuteLog,
                    java.lang.Exception e)
        
        Constructs a new exception based on whether to output the log information and the known exception.
        Parameters:
        isExecuteLog - whether to output the log information, true means to output, false means not.
        e - the existing exception.
      • OGCException

        public OGCException(java.lang.String msg,
                    java.lang.Throwable e)
        
        Construct new exception with the specific detailed message.
        Parameters:
        msg - detailed message.
        e - reason.
      • OGCException

        public 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.
        Parameters:
        isExecuteLog - whether to output the log information, true means to output, false means not.
        msg - detailed message.
        e - reason.
      • OGCException

        public 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.
        Parameters:
        isExecuteLog - whether to output the log information, true means to output, false means not.
        message - detailed message.
        code - the exception codes.
        locator - exception location.
      • OGCException

        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.

        Parameters:
        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.
    • Method Detail

      • isExecuteLog

        public boolean isExecuteLog()
        
        whether to output the log information.
        Returns:
        true means to output, false means not.
      • setCode

        public void setCode(java.lang.String code)
        
        Set exception code.
        Parameters:
        code - the exception codes.
      • setLocator

        public void setLocator(java.lang.String locator)
        
        Set exception location.
        Parameters:
        locator - exception location.
      • getCode

        public java.lang.String getCode()
        
        Get exception code.
        Returns:
        exception code.
      • getLocator

        public java.lang.String getLocator()
        
        Get exception location.
        Returns:
        exception location.
      • getFormat

        public java.lang.String getFormat()
        
        Get the format of the exception information.
        Returns:
        the format of the exception information.
      • setFormat

        public void setFormat(java.lang.String format)
        
        Set the format of the exception information.
        Parameters:
        format - the format of the exception information.