Package org.bson

Class BSONException

    • Constructor Summary

      Constructors 
      Constructor Description
      BSONException​(int errorCode,  msg)  
      BSONException​(int errorCode,  msg,  t)  
       msg)  
       msg,  t)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      getErrorCode()
      Returns the error code.
      boolean hasErrorCode()
      Returns if the error code is set (i.e., not null).
      • Methods inherited from class java.lang.

        , , , , , , , , , , , ,
      • Methods inherited from class java.lang.

        , , , , , , , , ,
    • Constructor Detail

      • BSONException

        public BSONException​( msg)
        Parameters:
        msg - The error message.
      • BSONException

        public BSONException​(int errorCode,
                              msg)
        Parameters:
        errorCode - The error code.
        msg - The error message.
      • BSONException

        public BSONException​( msg,
                              t)
        Parameters:
        msg - The error message.
        t - The throwable cause.
      • BSONException

        public BSONException​(int errorCode,
                              msg,
                              t)
        Parameters:
        errorCode - The error code.
        msg - The error message.
        t - The throwable cause.
    • Method Detail

      • getErrorCode

        public  getErrorCode()
        Returns the error code.
        Returns:
        The error code.
      • hasErrorCode

        public boolean hasErrorCode()
        Returns if the error code is set (i.e., not null).
        Returns:
        true if the error code is not null.