com.android.ide.common.rendering
Class RenderSecurityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.SecurityException
com.android.ide.common.rendering.RenderSecurityException
- All Implemented Interfaces:
- java.io.Serializable
public class RenderSecurityException
- extends java.lang.SecurityException
Exception thrown when custom view code makes an illegal code while rendering under layoutlib
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage in class java.lang.Throwable
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Throwable
create
@NonNull
public static RenderSecurityException create(@NonNull
java.lang.String resource,
@Nullable
java.lang.String context)
- Creates a new RenderSecurityException
- Parameters:
resource - the type of resource being accessed - "Thread", "Write", "Socket", etccontext - more information about the object, such as the path of the file being read
- Returns:
- a new exception
create
@NonNull
public static RenderSecurityException create(@NonNull
java.lang.String message)
- Creates a new RenderSecurityException
- Parameters:
message - the message for the exception
- Returns:
- a new exception