Streams - Ability to read exception path
This commit is contained in:
parent
0651ea28e0
commit
165c19109f
2 changed files with 6 additions and 0 deletions
|
@ -46,6 +46,7 @@ class X_StreamError : public std::exception
|
||||||
|
|
||||||
E_StreamError code( ) const noexcept;
|
E_StreamError code( ) const noexcept;
|
||||||
int systemError( ) const noexcept;
|
int systemError( ) const noexcept;
|
||||||
|
T_Optional< T_FSPath > const& path( ) const noexcept;
|
||||||
|
|
||||||
char const* what( ) const noexcept;
|
char const* what( ) const noexcept;
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,6 +35,11 @@ inline int X_StreamError::systemError( ) const noexcept
|
||||||
return sysError_;
|
return sysError_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline T_Optional< T_FSPath > const& X_StreamError::path( ) const noexcept
|
||||||
|
{
|
||||||
|
return path_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*= A_Stream =================================================================*/
|
/*= A_Stream =================================================================*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue