Package com.Server.exception
Class WrongDataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.Server.exception.WrongDataException
- All Implemented Interfaces:
java.io.Serializable
public class WrongDataException
extends java.lang.RuntimeException
Exception to wrong request.
- Since:
- 2020-04-27.
- Version:
- 2.0.
- Author:
- Krystian Cwioro Kamil Bieniasz Damian Mierzynski.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringerrorerror -
Constructor Summary
Constructors Constructor Description WrongDataException(java.lang.String error)ConstructorWrongDataException(java.lang.String message, java.lang.String error)ConstructorWrongDataException(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace, java.lang.String error)ConstructorWrongDataException(java.lang.String message, java.lang.Throwable cause, java.lang.String error)ConstructorWrongDataException(java.lang.Throwable cause, java.lang.String error)Constructor -
Method Summary
Modifier and Type Method Description java.lang.StringgetError()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
error
private java.lang.String errorerror
-
-
Constructor Details
-
WrongDataException
public WrongDataException(java.lang.String error)Constructor- Parameters:
error-
-
WrongDataException
public WrongDataException(java.lang.String message, java.lang.String error)Constructor- Parameters:
error-
-
WrongDataException
public WrongDataException(java.lang.String message, java.lang.Throwable cause, java.lang.String error)Constructor- Parameters:
error-
-
WrongDataException
public WrongDataException(java.lang.Throwable cause, java.lang.String error)Constructor- Parameters:
error-
-
WrongDataException
public WrongDataException(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace, java.lang.String error)Constructor- Parameters:
error-
-
-
Method Details
-
getError
public java.lang.String getError()- Returns:
- message error.
-