yakworks.api.problem.data.DataProblemException.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-messages Show documentation
Show all versions of api-messages Show documentation
Models and SPI for message service, api results and problems.
/*
* Copyright 2019 original authors
* SPDX-License-Identifier: Apache-2.0
*/
package yakworks.api.problem.data
import groovy.transform.CompileStatic
import yakworks.api.problem.ThrowableProblem
/**
* generic problem
*/
@SuppressWarnings('ConfusingClassNamedException')
@CompileStatic
class DataProblemException extends ThrowableProblem {
DataProblemException() {super()}
DataProblemException(Throwable cause) {super(cause)}
Object getEntity(){ (problem as DataProblemTrait).getEntity() }
}