Home
last modified time | relevance | path

Searched refs:ExceptionWithContext (Results 1 – 25 of 63) sorted by relevance

123

/external/smali/dexlib2/src/main/java/org/jf/util/
DExceptionWithContext.java33 public class ExceptionWithContext class
48 public static ExceptionWithContext withContext(Throwable ex, String str, Object... formatArgs) { in withContext()
49 ExceptionWithContext ewc; in withContext()
51 if (ex instanceof ExceptionWithContext) { in withContext()
52 ewc = (ExceptionWithContext) ex; in withContext()
54 ewc = new ExceptionWithContext(ex); in withContext()
66 public ExceptionWithContext(String message, Object... formatArgs) { in ExceptionWithContext() method in ExceptionWithContext
75 public ExceptionWithContext(Throwable cause) { in ExceptionWithContext() method in ExceptionWithContext
85 public ExceptionWithContext(Throwable cause, String message, Object... formatArgs) { in ExceptionWithContext() method in ExceptionWithContext
90 if (cause instanceof ExceptionWithContext) { in ExceptionWithContext()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/reference/
DDexBackedCallSiteReference.java45 import org.jf.util.ExceptionWithContext;
73 … throw new ExceptionWithContext("Invalid call site item: must contain at least 3 entries."); in getMethodHandle()
79 throw new ExceptionWithContext( in getMethodHandle()
91 … throw new ExceptionWithContext("Invalid call site item: must contain at least 3 entries."); in getMethodName()
98 throw new ExceptionWithContext( in getMethodName()
110 … throw new ExceptionWithContext("Invalid call site item: must contain at least 3 entries."); in getMethodProto()
118 throw new ExceptionWithContext( in getMethodProto()
132 … throw new ExceptionWithContext("Invalid call site item: must contain at least 3 entries."); in getExtraArguments()
DDexBackedReference.java37 import org.jf.util.ExceptionWithContext;
59 throw new ExceptionWithContext("Invalid reference type: %d", referenceType); in makeReference()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
DBaseDexReader.java34 import org.jf.util.ExceptionWithContext;
78 throw new ExceptionWithContext( in readSleb128()
107 throw new ExceptionWithContext( in peekSleb128Size()
147 throw new ExceptionWithContext( in readUleb128()
153 throw new ExceptionWithContext( in readUleb128()
185 throw new ExceptionWithContext( in peekUleb128Size()
191 throw new ExceptionWithContext( in peekUleb128Size()
241 throw new ExceptionWithContext( in readBigUleb128()
272 throw new ExceptionWithContext( in peekBigUleb128Size()
298 throw new ExceptionWithContext( in skipUleb128()
[all …]
DBaseDexBuffer.java34 import org.jf.util.ExceptionWithContext;
58 …throw new ExceptionWithContext("Encountered small uint that is out of range at offset 0x%x", offse… in readSmallUint()
71 …throw new ExceptionWithContext("Encountered optional uint that is out of range at offset 0x%x", of… in readOptionalUint()
112 throw new ExceptionWithContext("Encountered out-of-range ulong at offset 0x%x", offset); in readLongAsSmallUint()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/
DAnnotationVisibility.java34 import org.jf.util.ExceptionWithContext;
45 throw new ExceptionWithContext("Invalid annotation visibility %d", visibility); in getVisibility()
61 throw new ExceptionWithContext("Invalid annotation visibility: %s", visibility); in getVisibility()
DMethodHandleType.java36 import org.jf.util.ExceptionWithContext;
74 throw new ExceptionWithContext("Invalid method handle type: %s", methodHandleType); in getMethodHandleType()
79 public static class InvalidMethodHandleTypeException extends ExceptionWithContext {
DReferenceType.java35 import org.jf.util.ExceptionWithContext;
99 public static class InvalidReferenceTypeException extends ExceptionWithContext {
DVerificationError.java35 import org.jf.util.ExceptionWithContext;
94 throw new ExceptionWithContext("Invalid verification error: %s", verificationError); in getVerificationError()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/dexbacked/
DBaseDexBufferTest.java35 import org.jf.util.ExceptionWithContext;
55 @Test(expected=ExceptionWithContext.class)
61 @Test(expected=ExceptionWithContext.class)
67 @Test(expected=ExceptionWithContext.class)
88 @Test(expected=ExceptionWithContext.class)
94 @Test(expected=ExceptionWithContext.class)
100 @Test(expected=ExceptionWithContext.class)
DBaseDexReaderTest.java35 import org.jf.util.ExceptionWithContext;
90 } catch (ExceptionWithContext ex) { in performSizedIntFailureTest()
149 } catch (ExceptionWithContext ex) { in performSizedSmallUintFailureTest()
215 } catch (ExceptionWithContext ex) { in performSizedRightExtendedIntFailureTest()
324 } catch (ExceptionWithContext ex) { in performSizedRightExtendedLongFailureTest()
433 } catch (ExceptionWithContext ex) { in performSizedLongFailureTest()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
DBuilderOffsetInstruction.java36 import org.jf.util.ExceptionWithContext;
54 throw new ExceptionWithContext("Invalid instruction offset: %d. " + in getCodeOffset()
59 throw new ExceptionWithContext("Invalid instruction offset: %d. " + in getCodeOffset()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/
DAnnotatedBytes.java38 import org.jf.util.ExceptionWithContext;
124 throw new ExceptionWithContext("Annotating outside the parent bounds"); in annotate()
146 throw new ExceptionWithContext( in annotate()
156 throw new ExceptionWithContext( in annotate()
174 throw new ExceptionWithContext( in annotate()
180 throw new ExceptionWithContext( in annotate()
187 throw new ExceptionWithContext( in annotate()
DInstructionOffsetMap.java35 import org.jf.util.ExceptionWithContext;
80 public static class InvalidInstructionOffset extends ExceptionWithContext {
93 public static class InvalidInstructionIndex extends ExceptionWithContext {
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/value/
DDexBackedEncodedValue.java39 import org.jf.util.ExceptionWithContext;
111 throw new ExceptionWithContext("Invalid encoded_value type: 0x%x", valueType); in readFrom()
114 …throw ExceptionWithContext.withContext(ex, "Error while reading encoded value at offset 0x%x", sta… in readFrom()
155 throw new ExceptionWithContext("Invalid encoded_value type: 0x%x", valueType); in skipFrom()
158 … throw ExceptionWithContext.withContext(ex, "Error while skipping encoded value at offset 0x%x", in skipFrom()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/reference/
DImmutableReferenceFactory.java36 import org.jf.util.ExceptionWithContext;
64 throw new ExceptionWithContext("Invalid reference type"); in of()
85 throw new ExceptionWithContext("Invalid reference type: %d", referenceType); in of()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/instruction/
DDexBackedArrayPayload.java38 import org.jf.util.ExceptionWithContext;
60 …throw new ExceptionWithContext("Invalid array-payload instruction: element width*count overflows"); in DexBackedArrayPayload()
109 throw new ExceptionWithContext("Invalid element width: %d", elementWidth); in getArrayElements()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/
DDexDataWriterTest.java36 import org.jf.util.ExceptionWithContext;
148 @Test(expected=ExceptionWithContext.class)
153 @Test(expected=ExceptionWithContext.class)
171 @Test(expected=ExceptionWithContext.class)
176 @Test(expected=ExceptionWithContext.class)
191 @Test(expected=ExceptionWithContext.class)
196 @Test(expected=ExceptionWithContext.class)
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DUnresolvedClassException.java34 import org.jf.util.ExceptionWithContext;
36 public class UnresolvedClassException extends ExceptionWithContext {
DAnalysisException.java34 import org.jf.util.ExceptionWithContext;
36 public class AnalysisException extends ExceptionWithContext {
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DDexDataWriter.java34 import org.jf.util.ExceptionWithContext;
108 throw new ExceptionWithContext("Short value out of range: %d", value); in writeShort()
116 throw new ExceptionWithContext("Unsigned short value out of range: %d", value); in writeUshort()
124 throw new ExceptionWithContext("Unsigned byte value out of range: %d", value); in writeUbyte()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
DBaseOffsetPool.java35 import org.jf.util.ExceptionWithContext;
54 throw new ExceptionWithContext("Item not found.: %s", getItemString(key)); in getItemOffset()
DBaseIndexPool.java35 import org.jf.util.ExceptionWithContext;
54 throw new ExceptionWithContext("Item not found.: %s", getItemString(key)); in getItemIndex()
DStringPool.java36 import org.jf.util.ExceptionWithContext;
60 throw new ExceptionWithContext("Item not found.: %s", key.toString()); in getItemIndex()
DStringTypeBasePool.java36 import org.jf.util.ExceptionWithContext;
57 throw new ExceptionWithContext("Item not found.: %s", key.toString()); in getItemIndex()

123