if(message.isPresent() && cause.isPresent()){
                exception = new AlexandriaException(message.get(), cause.get());
            } else if(message.isPresent()){
                exception = new AlexandriaException(message.get());
            } else if(cause.isPresent()){