public class ExceptionDto extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
message |
protected String |
type |
Constructor and Description |
---|
ExceptionDto() |
Modifier and Type | Method and Description |
---|---|
static ExceptionDto |
fromException(Exception e) |
static ExceptionDto |
fromException(Throwable e) |
String |
getMessage() |
String |
getType() |
void |
setMessage(String message) |
void |
setType(String type) |
public String getType()
public String getMessage()
public static ExceptionDto fromException(Exception e)
public static ExceptionDto fromException(Throwable e)
public void setType(String type)
public void setMessage(String message)
Copyright © 2022. All rights reserved.