public class InsufficientPlan
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
message |
protected java.lang.String |
upsellUrl |
Constructor and Description |
---|
InsufficientPlan(java.lang.String message)
None
|
InsufficientPlan(java.lang.String message,
java.lang.String upsellUrl) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessage()
A message to tell the user to upgrade in order to support expected
action.
|
java.lang.String |
getUpsellUrl()
A URL to send the user to in order to obtain the account type they need,
e.g.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String message
protected final java.lang.String upsellUrl
public InsufficientPlan(java.lang.String message, java.lang.String upsellUrl)
message
- A message to tell the user to upgrade in order to support
expected action. Must not be null
.upsellUrl
- A URL to send the user to in order to obtain the
account type they need, e.g. upgrading. Absent if there is no action
the user can take to upgrade.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public InsufficientPlan(java.lang.String message)
The default values for unset fields will be used.
message
- A message to tell the user to upgrade in order to support
expected action. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getMessage()
null
.public java.lang.String getUpsellUrl()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.