Home
last modified time | relevance | path

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

123

/external/smali/util/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/
DBaseDexReader.java34 import org.jf.util.ExceptionWithContext;
78 throw new ExceptionWithContext( in readSleb128()
116 throw new ExceptionWithContext( in readUleb128()
122 throw new ExceptionWithContext( in readUleb128()
173 throw new ExceptionWithContext( in readBigUleb128()
201 throw new ExceptionWithContext( in skipUleb128()
312 … throw new ExceptionWithContext("Invalid size %d for sized int at offset 0x%x", bytes, offset); in readSizedInt()
327 throw new ExceptionWithContext( in readSizedSmallUint()
342 … throw new ExceptionWithContext("Invalid size %d for sized uint at offset 0x%x", bytes, offset); in readSizedSmallUint()
373 throw new ExceptionWithContext( in readSizedRightExtendedInt()
[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()
DDexBackedDexFile.java39 import org.jf.util.ExceptionWithContext;
162 throw new ExceptionWithContext("Big endian dex files are not currently supported");
166 throw new ExceptionWithContext("Invalid endian tag: 0x%x", endian);
291 public static class InvalidItemIndex extends ExceptionWithContext {
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/
DDexFileFactory.java43 import org.jf.util.ExceptionWithContext;
98 … throw new ExceptionWithContext("The %s file in %s is too small to be a valid dex file", in loadDexFile()
101 throw new ExceptionWithContext("The %s file in %s is too large to read in", in loadDexFile()
186 … throw new ExceptionWithContext("%s is not an apk, dex, odex or oat file.", dexFile.getPath()); in loadDexFile()
195 public static class DexFileNotFound extends ExceptionWithContext {
209 public static class MultipleDexFilesException extends ExceptionWithContext {
218 public static class UnsupportedOatVersionException extends ExceptionWithContext {
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()
DReferenceType.java35 import org.jf.util.ExceptionWithContext;
89 public static class InvalidReferenceTypeException extends ExceptionWithContext {
/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/dexbacked/value/
DDexBackedEncodedValue.java39 import org.jf.util.ExceptionWithContext;
105 throw new ExceptionWithContext("Invalid encoded_value type: 0x%x", valueType); in readFrom()
108 …throw ExceptionWithContext.withContext(ex, "Error while reading encoded value at offset 0x%x", sta… in readFrom()
147 throw new ExceptionWithContext("Invalid encoded_value type: 0x%x", valueType); in skipFrom()
150 … throw ExceptionWithContext.withContext(ex, "Error while skipping encoded value at offset 0x%x", in skipFrom()
/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/immutable/reference/
DImmutableReferenceFactory.java36 import org.jf.util.ExceptionWithContext;
58 throw new ExceptionWithContext("Invalid reference type"); in of()
75 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;
149 @Test(expected=ExceptionWithContext.class)
154 @Test(expected=ExceptionWithContext.class)
172 @Test(expected=ExceptionWithContext.class)
177 @Test(expected=ExceptionWithContext.class)
192 @Test(expected=ExceptionWithContext.class)
197 @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 {
DArrayProto.java40 import org.jf.util.ExceptionWithContext;
56 throw new ExceptionWithContext("Invalid array type: %s", type); in ArrayProto()
61 throw new ExceptionWithContext("Invalid array type: %s", type); in ArrayProto()
/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/dexbacked/reference/
DDexBackedReference.java37 import org.jf.util.ExceptionWithContext;
55 throw new ExceptionWithContext("Invalid reference type: %d", referenceType); in makeReference()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
DStringPool.java36 import org.jf.util.ExceptionWithContext;
55 throw new ExceptionWithContext("Item not found.: %s", key.toString()); in getItemIndex()
DBaseOffsetPool.java36 import org.jf.util.ExceptionWithContext;
52 throw new ExceptionWithContext("Item not found.: %s", getItemString(key)); in getItemOffset()
DBaseIndexPool.java36 import org.jf.util.ExceptionWithContext;
52 throw new ExceptionWithContext("Item not found.: %s", getItemString(key)); in getItemIndex()
DStringTypeBasePool.java37 import org.jf.util.ExceptionWithContext;
54 throw new ExceptionWithContext("Item not found.: %s", key.toString()); in getItemIndex()
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/Debug/
DDebugMethodItem.java38 import org.jf.util.ExceptionWithContext;
68 … throw new ExceptionWithContext("Invalid debug item type: %d", debugItem.getDebugItemType()); in build()

123