public class CannotDeleteRoleWithChildrenException extends APIException
Constructor and Description |
---|
CannotDeleteRoleWithChildrenException()
Generic constructor that gives a normal reason why the user is not being allowed to delete role.
|
CannotDeleteRoleWithChildrenException(String message)
Convenience constructor to give the user a message other than normal default one
|
CannotDeleteRoleWithChildrenException(String message,
Throwable cause)
Convenience constructor to give the user a message other than normal one and to chain
this exception with a parent exception.
|
CannotDeleteRoleWithChildrenException(Throwable cause)
Convenience constructor used to only set the parent exception to chain with.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CannotDeleteRoleWithChildrenException()
public CannotDeleteRoleWithChildrenException(String message)
message
- the reason to show to the user as to why the role can't be deletedpublic CannotDeleteRoleWithChildrenException(String message, Throwable cause)
message
- the reason to show to the user as to why the role can't be deletedcause
- the parent exceptionpublic CannotDeleteRoleWithChildrenException(Throwable cause)
CannotDeleteRoleWithChildrenException(String, Throwable)
constructor is preferred over this one.cause
- the parent exceptionCopyright © 2024 OpenMRS Inc.. All rights reserved.