com.android.ide.common.rendering
Class RenderSecurityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.SecurityException
                  extended by 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

Method Summary
static RenderSecurityException create(java.lang.String message)
          Creates a new RenderSecurityException
static RenderSecurityException create(java.lang.String resource, java.lang.String context)
          Creates a new RenderSecurityException
 java.lang.String getMessage()
           
 java.lang.String toString()
           
 
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
 

Method Detail

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", etc
context - 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