org.springdoc.api.ErrorMessage Maven / Gradle / Ivy
The newest version!
/*
*
* *
* * *
* * * * Copyright 2019-2022 the original author or authors.
* * * *
* * * * Licensed under the Apache License, Version 2.0 (the "License");
* * * * you may not use this file except in compliance with the License.
* * * * You may obtain a copy of the License at
* * * *
* * * * https://www.apache.org/licenses/LICENSE-2.0
* * * *
* * * * Unless required by applicable law or agreed to in writing, software
* * * * distributed under the License is distributed on an "AS IS" BASIS,
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* * * * See the License for the specific language governing permissions and
* * * * limitations under the License.
* * *
* *
*
*/
package org.springdoc.api;
import java.util.UUID;
/**
* The type Error message.
*/
public class ErrorMessage {
/**
* The Id.
*/
private UUID id;
/**
* The Message.
*/
private String message;
/**
* Instantiates a new Error message.
*
* @param message the message
*/
public ErrorMessage(String message) {
this.id = UUID.randomUUID();
this.message = message;
}
/**
* Gets id.
*
* @return the id
*/
public UUID getId() {
return id;
}
/**
* Sets id.
*
* @param id the id
*/
public void setId(UUID id) {
this.id = id;
}
/**
* Gets message.
*
* @return the message
*/
public String getMessage() {
return message;
}
/**
* Sets message.
*
* @param message the message
*/
public void setMessage(String message) {
this.message = message;
}
}