Class AbstractCodedMetapathException

    • Constructor Detail

      • AbstractCodedMetapathException

        public AbstractCodedMetapathException​(int code,
                                              String message)
        Constructs a new Metapath exception with the provided message and no cause.
        Parameters:
        code - the error code value
        message - the exception message
      • AbstractCodedMetapathException

        public AbstractCodedMetapathException​(int code,
                                              String message,
                                              Throwable cause)
        Constructs a new Metapath exception with the provided message and cause.
        Parameters:
        code - the error code value
        message - the exception message
        cause - the exception cause
      • AbstractCodedMetapathException

        public AbstractCodedMetapathException​(int code,
                                              Throwable cause)
        Constructs a new Metapath exception with a null message and the provided cause.
        Parameters:
        code - the error code value
        cause - the exception cause
    • Method Detail

      • getCode

        protected int getCode()
        Get the error code value.
        Returns:
        the error code value
      • getCodePrefix

        protected abstract String getCodePrefix()
        Get the error code family.
        Returns:
        the error code family
      • getCodeAsString

        protected String getCodeAsString()
        Get a combination of the error code family and value.
        Returns:
        the full error code.