package com.pixelized.desktop.lwa.network

import com.pixelized.shared.lwa.protocol.rest.APIResponse

class LwaNetworkException(
    val status: Int,
    val code: APIResponse.ErrorCode?,
    message: String,
) : Exception(message) {
    constructor(error: APIResponse<*>) : this(
        status = error.status,
        code = error.code,
        message = error.message ?: "An unknown error occurred"
    )
}