mirror of
https://github.com/ksherlock/profuse.git
synced 2024-06-10 17:29:32 +00:00
fix new Exception throwing.
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@325 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
parent
6b6ad10ba0
commit
539aa1310c
|
@ -157,7 +157,7 @@ RawDevice::RawDevice(const char *name, File::FileFlags flags) :
|
||||||
|
|
||||||
if (!_file.isValid())
|
if (!_file.isValid())
|
||||||
{
|
{
|
||||||
throw new Exception(__METHOD__ ": Invalid file handle.");
|
throw Exception(__METHOD__ ": Invalid file handle.");
|
||||||
}
|
}
|
||||||
|
|
||||||
_readOnly = flags == File::ReadOnly;
|
_readOnly = flags == File::ReadOnly;
|
||||||
|
@ -178,7 +178,7 @@ RawDevice::RawDevice(File& file, File::FileFlags flags) :
|
||||||
|
|
||||||
if (!_file.isValid())
|
if (!_file.isValid())
|
||||||
{
|
{
|
||||||
throw new Exception(__METHOD__ ": Invalid file handle.");
|
throw Exception(__METHOD__ ": Invalid file handle.");
|
||||||
}
|
}
|
||||||
|
|
||||||
_readOnly = flags == File::ReadOnly;
|
_readOnly = flags == File::ReadOnly;
|
||||||
|
|
|
@ -262,7 +262,7 @@ void VolumeEntry::init(void *vp)
|
||||||
|
|
||||||
// verify filenamelength <= 7
|
// verify filenamelength <= 7
|
||||||
if (_fileNameLength > 7)
|
if (_fileNameLength > 7)
|
||||||
throw new ProDOSException(__METHOD__ ": invalid name length", ProFUSE::badPathSyntax);
|
throw ProDOSException(__METHOD__ ": invalid name length", ProFUSE::badPathSyntax);
|
||||||
|
|
||||||
// verify fileKind == 0
|
// verify fileKind == 0
|
||||||
// verify _fileCount reasonable
|
// verify _fileCount reasonable
|
||||||
|
|
Loading…
Reference in New Issue
Block a user