public class NotAuthorizedException extends Exception implements NotAuthorizedInterface
COMMERCIAL_DIALOG, ELEMENTARY_STREAM, FREE_PREVIEW_DIALOG, GEOGRAPHICAL_BLACKOUT, MATURITY_RATING, MATURITY_RATING_DIALOG, NO_ENTITLEMENT, NOT_POSSIBLE, OTHER, POSSIBLE_UNDER_CONDITIONS, SERVICE, TECHNICAL, TECHNICAL_DIALOG| Constructor and Description |
|---|
NotAuthorizedException()
Constructs a NotAuthorizedException with no detail message
|
NotAuthorizedException(String s)
Constructs a NotAuthorizedException with the specified detail message
|
| Modifier and Type | Method and Description |
|---|---|
ElementaryStream[] |
getElementaryStreams()
If getType() returns ELEMENTARY_STREAM, then this method returns
the set of ElementaryStreams that could not be descrambled.
|
int[] |
getReason(int index)
Returns the reason(s) why descrambling was not possible.
|
Service |
getService()
If getType() returns SERVICE, then this method returns the
Service that could not be descrambled.
|
int |
getType() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NotAuthorizedException()
public NotAuthorizedException(String s)
s - the detail messagepublic int getType()
getType in interface NotAuthorizedInterfacepublic Service getService()
getService in interface NotAuthorizedInterfacepublic ElementaryStream[] getElementaryStreams()
getElementaryStreams in interface NotAuthorizedInterfacepublic int[] getReason(int index)
throws IndexOutOfBoundsException
getReason in interface NotAuthorizedInterfaceindex - If the component to which access failed is a Service,
index shall be 0. Otherwise index shall refer to one stream in the
set returnedby getElementaryStreams().IndexOutOfBoundsException - If the component to which access
failed is a Service, this exception will be thrown if index is non zero.
If the component(s) to which access failed was a (set of) elementary
streams then this exception will be thrown where index is beyond the
size of the array returned by getElementaryStreams.NotAuthorizedInterface.getElementaryStreams()Copyright © 2012 code4tv.com. All Rights Reserved.