com.lightbend.lagom.javadsl.api.deser.ExceptionMessage Maven / Gradle / Ivy
/*
* Copyright (C) 2016 Lightbend Inc.
*/
package com.lightbend.lagom.javadsl.api.deser;
import java.io.Serializable;
/**
* A high level exception message.
*
* This is used by the default exception serializer to serialize exceptions into messages.
*/
public class ExceptionMessage implements Serializable {
private final String name;
private final String detail;
public ExceptionMessage(String name, String detail) {
this.name = name;
this.detail = detail;
}
public String name() {
return name;
}
public String detail() {
return detail;
}
@Override
public String toString() {
return "ExceptionMessage{" +
"name='" + name + '\'' +
", detail='" + detail + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy