Record Class ScreenOrientationLockError
java.lang.Object
java.lang.Record
com.vaadin.flow.component.screenorientation.ScreenOrientationLockError
- Record Components:
errorCode- the typed reason for the failure, nevernulldebugInfo- a free-form description of the failure as reported by the browser, suitable for logging; nevernullbut possibly empty
- All Implemented Interfaces:
Serializable
public record ScreenOrientationLockError(ScreenOrientationLockErrorCode errorCode, String debugInfo)
extends Record
implements Serializable
Describes a failed screen-orientation lock request.
The client maps the browser failure to a typed
ScreenOrientationLockErrorCode before reporting it, so application
code can branch on errorCode() with an exhaustive switch.
debugInfo() carries the free-form browser description of the failure
? useful for log lines and bug reports, but the wording is not standardised
across browsers and must not be shown to end users as-is.
- Since:
- 25.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScreenOrientationLockError(ScreenOrientationLockErrorCode errorCode, String debugInfo) Creates an instance of aScreenOrientationLockErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedebugInforecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
errorCode
Returns the value of theerrorCoderecord component.- Returns:
- the value of the
errorCoderecord component
-
debugInfo
Returns the value of thedebugInforecord component.- Returns:
- the value of the
debugInforecord component
-