Skip to content

Commit

Permalink
made FluentMongoError public (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
MFranceschi6 authored Mar 10, 2022
1 parent 3fe07e6 commit 5ba4d58
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/FluentMongoDriver/Errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ extension MongoError: DatabaseError {
public var isConnectionClosed: Bool { false }
}

enum FluentMongoError: Error, DatabaseError {
var isSyntaxError: Bool { false }
var isConstraintFailure: Bool { false }
var isConnectionClosed: Bool { false }
public enum FluentMongoError: Error, DatabaseError {
public var isSyntaxError: Bool { false }
public var isConstraintFailure: Bool { false }
public var isConnectionClosed: Bool { false }

case missingHosts
case noTargetDatabaseSpecified
Expand All @@ -41,7 +41,7 @@ enum FluentMongoError: Error, DatabaseError {


extension FluentMongoError: LocalizedError {
var errorDescription: String? {
public var errorDescription: String? {
"\(self)"
}
}

0 comments on commit 5ba4d58

Please sign in to comment.