Skip to content

Commit

Permalink
Switch to INVALID_DEX error
Browse files Browse the repository at this point in the history
Summary: Standardize.

Reviewed By: ssj933

Differential Revision: D66338028

fbshipit-source-id: 148b91bfe5a846416f6d51b71621a8fffa0cad01
  • Loading branch information
agampe authored and facebook-github-bot committed Nov 23, 2024
1 parent 67df54f commit a6b2f30
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libredex/DexIdx.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class DexIdx {
}

always_assert_type_log(
typeidx < m_type_ids_size, RedexError::CACHE_INDEX_OUT_OF_BOUND,
typeidx < m_type_ids_size, RedexError::INVALID_DEX,
"Type index is out of bound. index: %d, cache size: %d", typeidx,
m_type_ids_size);

Expand All @@ -97,7 +97,7 @@ class DexIdx {

DexFieldRef* get_fieldidx(uint32_t fidx) {
always_assert_type_log(
fidx < m_field_ids_size, RedexError::CACHE_INDEX_OUT_OF_BOUND,
fidx < m_field_ids_size, RedexError::INVALID_DEX,
"Field index is out of bound. index: %d, cache size: %d", fidx,
m_field_ids_size);

Expand All @@ -112,7 +112,7 @@ class DexIdx {

DexMethodRef* get_methodidx(uint32_t midx) {
always_assert_type_log(
midx < m_method_ids_size, RedexError::CACHE_INDEX_OUT_OF_BOUND,
midx < m_method_ids_size, RedexError::INVALID_DEX,
"Method index is out of bound. index: %d, cache size: %d", midx,
m_method_ids_size);

Expand All @@ -127,7 +127,7 @@ class DexIdx {

DexCallSite* get_callsiteidx(uint32_t csidx) {
always_assert_type_log(
csidx < m_callsite_ids_size, RedexError::CACHE_INDEX_OUT_OF_BOUND,
csidx < m_callsite_ids_size, RedexError::INVALID_DEX,
"CallSite index is out of bound. index: %d, cache size: %d", csidx,
m_callsite_ids_size);

Expand All @@ -142,7 +142,7 @@ class DexIdx {

DexMethodHandle* get_methodhandleidx(uint32_t mhidx) {
always_assert_type_log(
mhidx < m_methodhandle_ids_size, RedexError::CACHE_INDEX_OUT_OF_BOUND,
mhidx < m_methodhandle_ids_size, RedexError::INVALID_DEX,
"Methodhandle index is out of bound. index: %d, cache size: %d", mhidx,
m_methodhandle_ids_size);

Expand All @@ -157,7 +157,7 @@ class DexIdx {

DexProto* get_protoidx(uint32_t pidx) {
always_assert_type_log(
pidx < m_proto_ids_size, RedexError::CACHE_INDEX_OUT_OF_BOUND,
pidx < m_proto_ids_size, RedexError::INVALID_DEX,
"Prototype index is out of bound. index: %d, cache size: %d", pidx,
m_proto_ids_size);

Expand Down

0 comments on commit a6b2f30

Please sign in to comment.