All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eightkdata.mongowp.exceptions.OperationFailedException Maven / Gradle / Ivy

There is a newer version: 0.50.0
Show newest version

package com.eightkdata.mongowp.exceptions;

import com.eightkdata.mongowp.ErrorCode;

/**
 *
 */
public class OperationFailedException extends MongoException {

    private static final long serialVersionUID = 1L;

    private final String reason;

    public OperationFailedException() {
        super(ErrorCode.OPERATION_FAILED);
        this.reason = "not specified";
    }

    public OperationFailedException(String reason) {
        super(ErrorCode.OPERATION_FAILED, reason);
        this.reason = reason;
    }

    public String getReason() {
        return reason;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy