From 03e42103ba8672a9ea3b82d6d1db4fb27a457c41 Mon Sep 17 00:00:00 2001 From: powercas_gamer Date: Sun, 12 Nov 2023 16:26:32 +0100 Subject: [PATCH] change to single class --- .../{ResponseExceptions.kt => FileNotFoundResponse.kt} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename app/src/main/kotlin/dev/mizule/imagery/app/exceptions/{ResponseExceptions.kt => FileNotFoundResponse.kt} (69%) diff --git a/app/src/main/kotlin/dev/mizule/imagery/app/exceptions/ResponseExceptions.kt b/app/src/main/kotlin/dev/mizule/imagery/app/exceptions/FileNotFoundResponse.kt similarity index 69% rename from app/src/main/kotlin/dev/mizule/imagery/app/exceptions/ResponseExceptions.kt rename to app/src/main/kotlin/dev/mizule/imagery/app/exceptions/FileNotFoundResponse.kt index 03736db..c1e293c 100644 --- a/app/src/main/kotlin/dev/mizule/imagery/app/exceptions/ResponseExceptions.kt +++ b/app/src/main/kotlin/dev/mizule/imagery/app/exceptions/FileNotFoundResponse.kt @@ -3,7 +3,7 @@ package dev.mizule.imagery.app.exceptions import io.javalin.http.HttpResponseException import io.javalin.http.HttpStatus -open class FileNotFoundResponse @JvmOverloads constructor( +class FileNotFoundResponse @JvmOverloads constructor( message: String = "This file does not exist", - details: Map = mapOf() -) : HttpResponseException(HttpStatus.NOT_FOUND, message, details) \ No newline at end of file + details: Map = mapOf(), +) : HttpResponseException(HttpStatus.NOT_FOUND, message, details)