Class SpecificUserExpectedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.SpecificUserExpectedException
All Implemented Interfaces:
Serializable

public class SpecificUserExpectedException extends PerunException
Thrown when expecting specificUser but the user was not specificUser
Author:
Michal Šťava
See Also:
  • Constructor Details

    • SpecificUserExpectedException

      public SpecificUserExpectedException(String message)
      Simple constructor with a message
      Parameters:
      message - message with details about the cause
    • SpecificUserExpectedException

      public SpecificUserExpectedException(String message, Throwable cause)
      Constructor with a message and Throwable object
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
    • SpecificUserExpectedException

      public SpecificUserExpectedException(Throwable cause)
      Constructor with a Throwable object
      Parameters:
      cause - Throwable that caused throwing of this exception
    • SpecificUserExpectedException

      public SpecificUserExpectedException(User user)
      Constructor with the user
      Parameters:
      user - user who is not specificUser
  • Method Details

    • getUser

      public User getUser()
      Getter for the user
      Returns:
      user who is not specificUser